class documentation

class Statusbar:

View In Hierarchy

Statusbar class.
Method __init__ Initializes statusbar.
Method arm "Arms" the statusbar before calculation.
Method cancel Cancels the ongoing calculation.
Method disarm "Disarms" the statusbar after calculation.
Method invalidate "Invalidates" the statusbar.
Method reload Reloads the statusbar.
Method set_progress Updates the progress percentage.
Method set_progressbar_color Sets the progressbar color & style.
Method set_text Updates the statusbar text.
Method start Starts the calculation.
Instance Variable gui Undocumented
Instance Variable layout Undocumented
Method _auto_calculation_changed Handles changed auto-calculation setting.
Instance Variable _auto_calculation_checkbox Undocumented
Instance Variable _cancel_button Undocumented
Instance Variable _canceled Undocumented
Instance Variable _cores_combobox Undocumented
Instance Variable _label Undocumented
Instance Variable _progressbar Undocumented
Instance Variable _start_button Undocumented
Instance Variable _valid Undocumented
def __init__(self, gui):
Initializes statusbar.
Parameters
gui:GUIGUI
def arm(self):
"Arms" the statusbar before calculation.
def cancel(self):
Cancels the ongoing calculation.
def disarm(self, success):
"Disarms" the statusbar after calculation.
Parameters
success:boolReflects calculation success or failure
def invalidate(self):
"Invalidates" the statusbar.
def reload(self):
Reloads the statusbar.
def set_progress(self, percentage):
Updates the progress percentage.
Parameters
percentage:intPercentage
def set_progressbar_color(self, fg_color, bg_color=None):
Sets the progressbar color & style.
Parameters
fg_color:strForeground color
bg_color:Optional[str]Background color (optional)
def set_text(self, text):
Updates the statusbar text.
Parameters
text:strText
def start(self):
Starts the calculation.
gui =

Undocumented

layout =

Undocumented

def _auto_calculation_changed(self):
Handles changed auto-calculation setting.
_auto_calculation_checkbox =

Undocumented

_cancel_button =

Undocumented

_canceled: bool =

Undocumented

_cores_combobox =

Undocumented

_label =

Undocumented

_progressbar =

Undocumented

_start_button =

Undocumented

_valid: bool =

Undocumented