GUI Base Widget Classes¶
Provides a collection of custom QWidget base classes
that allow for certain widgets to be standardized.
-
class
prism._gui.widgets.base_widgets.QW_QAction(parent, text, *, shortcut=None, tooltip=None, statustip=None, icon=None, triggered=None, role=None)[source]¶ Defines the
QW_QActionclass.This class provides default settings and extra options for the
QActionclass.-
__init__(parent, text, *, shortcut=None, tooltip=None, statustip=None, icon=None, triggered=None, role=None)[source]¶ Initializes the
QW_QActionclass.Parameters: - parent (
QWidgetobject or None) – The parent widget for this dialog or None for no parent. - text (str) – The label that this action must have.
Other Parameters: - shortcut (
QKeySequenceor None. Default: None) – The key sequence that must be set as the shortcut for this action. If None, no shortcut will be set. - tooltip (str or None. Default: None) – The text that must be set as the tooltip for this action. If None, the tooltip is set to text. If shortcut is not None, the tooltip will also include the shortcut.
- statustip (str or None. Default: None) – The text that must be set as the statustip for this action. If None, the statustip is set to tooltip.
- icon (
QIconobject or None. Default: None) – The icon that must be set as the icon for this action. If None, no icon will be set. - triggered (function or None. Default: None) – The Qt slot function that must be called whenever this action is triggered. If None, no slot will connected to this action’s signal.
- role (
MenuRoleobject or None. Default: None) – The menu role that must be set as the role of this action. If None, it is set toNoRole.
- parent (
-
setDetails(*, shortcut=None, tooltip=None, statustip=None)[source]¶ Uses the provided shortcut; tooltip; and statustip to set the details of this action.
Parameters: - shortcut (
QKeySequenceor None. Default: None) – The key sequence that must be set as the shortcut for this action. If None, no shortcut will be set. - tooltip (str or None. Default: None) – The text that must be set as the tooltip for this action. If None, the tooltip is set to text. If shortcut is not None, the tooltip will also include the shortcut.
- statustip (str or None. Default: None) – The text that must be set as the statustip for this action. If None, the statustip is set to tooltip.
- shortcut (
-
-
class
prism._gui.widgets.base_widgets.QW_QComboBox[source]¶ Defines the
QW_QComboBoxclass.This class provides default settings and extra options for the
QComboBoxclass.
-
class
prism._gui.widgets.base_widgets.QW_QEditableComboBox(*args, **kwargs)[source]¶ Defines the
QW_QEditableComboBoxclass.This class makes the
QW_QComboBoxclass editable.
-
class
prism._gui.widgets.base_widgets.QW_QLabel[source]¶ Defines the
QW_QLabelclass.This class provides default settings and extra options for the
QLabelclass.
-
class
prism._gui.widgets.base_widgets.QW_QMenu(parent, title)[source]¶ Defines the
QW_QMenuclass.This class provides default settings and extra options for the
QMenuclass.
-
class
prism._gui.widgets.base_widgets.QW_QToolBar(parent, window_title)[source]¶ Defines the
QW_QToolBarclass.This class provides default settings and extra options for the
QToolBarclass.