GUIBRUSHR.GUI.Input_Output_Panels.Output_Panels.PanelButtonRetrieval module

Panel for managing process control buttons in the GUI. This panel provides functionality to kill processes, update process information, and close the GUI application.

class GUIBRUSHR.GUI.Input_Output_Panels.Output_Panels.PanelButtonRetrieval.PanelButtonRetrieval(parent, color, row, column, **kwargs)[source]

Bases: MyPanel

A panel containing buttons for process management operations.

This panel provides three main functionalities: 1. Kill selected process 2. Update process information 3. Close the GUI application

parent

The parent widget

button_kill

Button to terminate selected process

button_update

Button to refresh process information

close_all

Button to close the GUI

label

Label for displaying messages

global_exc

Global exception counter

__init__(parent, color, row, column, **kwargs)[source]

Initialize the PanelButtonRetrieval.

Parameters:
  • parent – Parent widget

  • color – Background color for the panel

  • row – Row position in the grid

  • column – Column position in the grid

  • **kwargs – Additional keyword arguments for the panel

kill()[source]

Kill the selected process and update the process lists.

This method: 1. Prompts for confirmation 2. Kills the selected process and its children 3. Updates the process tracking lists 4. Removes the process from the table

update()[source]

Update the process information in the table.

This method: 1. Iterates through all tracked processes 2. Reads the process output file if it exists 3. Updates the table with current process information