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_QAction class.

This class provides default settings and extra options for the QAction class.

__init__(parent, text, *, shortcut=None, tooltip=None, statustip=None, icon=None, triggered=None, role=None)[source]

Initializes the QW_QAction class.

Parameters:
  • parent (QWidget object 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 (QKeySequence or 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 (QIcon object 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 (MenuRole object or None. Default: None) – The menu role that must be set as the role of this action. If None, it is set to NoRole.
setDetails(*, shortcut=None, tooltip=None, statustip=None)[source]

Uses the provided shortcut; tooltip; and statustip to set the details of this action.

Parameters:
  • shortcut (QKeySequence or 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.
class prism._gui.widgets.base_widgets.QW_QComboBox[source]

Defines the QW_QComboBox class.

This class provides default settings and extra options for the QComboBox class.

class prism._gui.widgets.base_widgets.QW_QEditableComboBox(*args, **kwargs)[source]

Defines the QW_QEditableComboBox class.

This class makes the QW_QComboBox class editable.

class prism._gui.widgets.base_widgets.QW_QLabel[source]

Defines the QW_QLabel class.

This class provides default settings and extra options for the QLabel class.

class prism._gui.widgets.base_widgets.QW_QMenu(parent, title)[source]

Defines the QW_QMenu class.

This class provides default settings and extra options for the QMenu class.

class prism._gui.widgets.base_widgets.QW_QToolBar(parent, window_title)[source]

Defines the QW_QToolBar class.

This class provides default settings and extra options for the QToolBar class.