Uranium
Application Framework
|
This is a specialised message that shows errors in the configuration. More...
Public Member Functions | |
def | __init__ (self, application, *args, **kwargs) |
def | addFaultyContainers (self, Union[Iterable, str] faulty_containers, *args) |
"ConfigurationErrorMessage" | getInstance (cls, *args, **kwargs) |
![]() | |
None | __init__ (self, str text="", int lifetime=30, bool dismissable=True, float progress=None, Optional[str] title=None, parent=None, bool use_inactivity_timer=True) |
Class for displaying messages to the user. More... | |
None | show (self) |
Show the message (if not already visible) | |
bool | isDismissable (self) |
Can the message be closed by user? | |
None | setLifetimeTimer (self, QTimer timer) |
Set the lifetime timer of the message. More... | |
None | setInactivityTimer (self, QTimer inactivity_timer) |
Set the inactivity timer of the message. More... | |
def | addAction (self, str action_id, str name, str icon, str description, int button_style=ActionButtonStyle.DEFAULT, int button_align=ActionButtonStyle.BUTTON_ALIGN_RIGHT) |
Add an action to the message Actions are useful for making messages that require input from the user. More... | |
List[Dict[str, Union[str, int]]] | getActions (self) |
Get the list of actions to display buttons for on the message. More... | |
None | setText (self, str text) |
Changes the text on the message. More... | |
str | getText (self) |
Returns the text in the message. More... | |
None | setMaxProgress (self, float max_progress) |
Sets the maximum numerical value of the progress bar on the message. More... | |
float | getMaxProgress (self) |
Gets the maximum value of the progress bar on the message. More... | |
None | setProgress (self, float progress) |
Changes the state of the progress bar. More... | |
Optional[float] | getProgress (self) |
Returns the current progress. More... | |
None | setTitle (self, str title) |
Changes the message title. More... | |
Optional[str] | getTitle (self) |
Returns the message title. More... | |
None | hide (self, send_signal=True) |
Hides this message. More... | |
Additional Inherited Members | |
![]() | |
inactivityTimerStop = pyqtSignal() | |
inactivityTimerStart = pyqtSignal() | |
actionTriggered = Signal() | |
progressChanged = Signal() | |
Signal that gets emitted whenever the state of the progress bar on this message changes. More... | |
This is a specialised message that shows errors in the configuration.
This class coalesces all errors in the configuration. Whenever there are new errors the message gets updated (and shown if it was hidden).