spinetoolbox.widgets.custom_qwidgets¶
Custom QWidgets for Filtering and Zooming.
- author
Vennström (VTT)
- date
4.12.2018
Module Contents¶
Classes¶
Filter widget class. |
|
Filter widget class. |
|
A QWidgetAction with custom hovering. |
|
An action with a tool bar. |
|
A toolbar on the right, with enough space to print a text beneath. |
|
A toolbar on the right, with enough space to print a text beneath. |
|
A menu item with a toolbar on the right. |
|
A custom tool bar for |
|
A titled separator. |
|
A QLabel that always wraps text. |
|
A QLabel that supports hyperlinks. |
|
A QWizards page with a log. Useful for pages that need to capture the output of a process. |
|
A read only QLabel with a QToolButton that copies the text to clipboard. |
- class spinetoolbox.widgets.custom_qwidgets.FilterWidgetBase(parent)[source]¶
Bases:
PySide2.QtWidgets.QWidgetFilter widget class.
Init class.
- Parameters
parent (QWidget) –
- class spinetoolbox.widgets.custom_qwidgets.SimpleFilterWidget(parent, show_empty=True)[source]¶
Bases:
FilterWidgetBaseFilter widget class.
Init class.
- Parameters
parent (QWidget) –
- class spinetoolbox.widgets.custom_qwidgets.CustomWidgetAction(parent=None)[source]¶
Bases:
PySide2.QtWidgets.QWidgetActionA QWidgetAction with custom hovering.
Class constructor.
- Parameters
parent (QMenu) – the widget’s parent
- class spinetoolbox.widgets.custom_qwidgets.ToolBarWidgetAction(text, parent=None, compact=False)[source]¶
Bases:
CustomWidgetActionAn action with a tool bar.
- tool_bar¶
- Type
QToolBar
Class constructor.
- Parameters
parent (QMenu) – the widget’s parent
- class spinetoolbox.widgets.custom_qwidgets.ToolBarWidgetBase(text, parent=None)[source]¶
Bases:
PySide2.QtWidgets.QWidgetA toolbar on the right, with enough space to print a text beneath.
- tool_bar¶
- Type
QToolBar
Class constructor.
- Parameters
text (str) –
parent (QWidget) – the widget’s parent
- class spinetoolbox.widgets.custom_qwidgets.ToolBarWidget(text, parent=None)[source]¶
Bases:
ToolBarWidgetBaseA toolbar on the right, with enough space to print a text beneath.
- tool_bar¶
- Type
QToolBar
Class constructor.
- Parameters
text (str) –
parent (QWidget) – the widget’s parent
- class spinetoolbox.widgets.custom_qwidgets.MenuItemToolBarWidget(text, parent=None, compact=False)[source]¶
Bases:
ToolBarWidgetBaseA menu item with a toolbar on the right.
- tool_bar¶
- Type
QToolBar
Class constructor.
- Parameters
text (str) –
parent (QWidget) – the widget’s parent
compact (bool) – if True, the widget uses the minimal space
- class spinetoolbox.widgets.custom_qwidgets._MenuToolBar[source]¶
Bases:
PySide2.QtWidgets.QToolBarA custom tool bar for
MenuItemToolBarWidget.- _setup_action_button(self, action)[source]¶
- Customizes the QToolButton associated with given action:
Makes sure that the text honors the action’s mnemonics.
Installs this as event filter on the button (see
self.eventFilter()).
Must be called everytime an action is added to the tool bar.
- Parameters
QAction –
- actionEvent(self, ev)[source]¶
Updates
self._enabled: True if at least one non-separator action is enabled, False otherwise. Emitsself.enabled_changedaccordingly.
- class spinetoolbox.widgets.custom_qwidgets.TitleWidgetAction(title, parent=None)[source]¶
Bases:
CustomWidgetActionA titled separator.
Class constructor.
- Parameters
parent (QMenu) – the widget’s parent
- class spinetoolbox.widgets.custom_qwidgets.WrapLabel(text='', parent=None)[source]¶
Bases:
PySide2.QtWidgets.QLabelA QLabel that always wraps text.
- class spinetoolbox.widgets.custom_qwidgets.HyperTextLabel(text='', parent=None)[source]¶
Bases:
WrapLabelA QLabel that supports hyperlinks.
- class spinetoolbox.widgets.custom_qwidgets.QWizardProcessPage(parent)[source]¶
Bases:
PySide2.QtWidgets.QWizardPageA QWizards page with a log. Useful for pages that need to capture the output of a process.