uos_activpal.gui.base.BaseQuestionDialog¶
-
class
uos_activpal.gui.base.BaseQuestionDialog(parent=None, question=None)[source]¶ A BaseDialog subclass desiged for asking binary (yes | no) questions.
See also
BaseDialog- A QDialog subclass which includes additional setup, mainly styling.
BaseMessageDialog- A BaseDialog subclass desiged for displaying messages.
-
__init__(parent=None, question=None)[source]¶ Create an instance of a BaseQuestionDialog.
Parameters: - parent (object) – The parent object.
- question (str) – The question to display.
Methods
__init__([parent, question])Create an instance of a BaseQuestionDialog. 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_question(question)Set the question displayed by the dialog. Attributes
base_geometry(left, top, width, height) – The default window geometry.