uos_activpal.gui.base.BaseMessageDialog¶
-
class
uos_activpal.gui.base.BaseMessageDialog(parent=None, msg=None)[source]¶ A BaseDialog subclass desiged for displaying messages.
See also
BaseDialog- A QDialog subclass which includes additional setup, mainly styling.
BaseQuestionDialog- A BaseDialog subclass desiged for asking binary (yes | no) questions.
-
__init__(parent=None, msg=None)[source]¶ Create an instance of a BaseMessageDialog.
Parameters: - parent (object) – The parent object.
- msg (str) – The message to display.
Methods
__init__([parent, msg])Create an instance of a BaseMessageDialog. centerOnScreen()Centers the window on the screen. controlbar_addWidget(widget)Add a widget to the controlbar. left_button_action()Define the left button action. main_space_addWidget(widget)Add a widget to the main space. right_button_action()Define the right button action. set_message(msg)Set the message displayed by the dialog. Attributes
base_geometry(left, top, width, height) – The default window geometry.