spinetoolbox.spine_db_editor.widgets.custom_qwidgets¶
Custom QWidgets.
| author: |
|
|---|---|
| date: | 13.5.2018 |
Module Contents¶
Classes¶
DataToValueFilterWidget |
Filter widget class. |
LazyFilterWidget |
Filter widget class. |
OpenFileButton |
A button to open files or show them in the folder. |
OpenSQLiteFileButton |
A button to open sqlite files, show them in the folder, or add them to the project. |
ShootingLabel |
|
CustomInputDialog |
-
class
spinetoolbox.spine_db_editor.widgets.custom_qwidgets.DataToValueFilterWidget(parent, data_to_value, show_empty=True)[source]¶ Bases:
spinetoolbox.widgets.custom_qwidgets.FilterWidgetBaseFilter widget class.
Init class.
Parameters: - parent (QWidget) –
- data_to_value (method) – a method to translate item data to a value for display role
-
class
spinetoolbox.spine_db_editor.widgets.custom_qwidgets.LazyFilterWidget(parent, source_model, show_empty=True)[source]¶ Bases:
spinetoolbox.widgets.custom_qwidgets.FilterWidgetBaseFilter widget class.
Init class.
Parameters: - parent (SpineDBEditor) –
- source_model (CompoundParameterModel, optional) – a model to lazily get data from
-
class
spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenFileButton(file_path, ds_form)[source]¶ Bases:
PySide2.QtWidgets.QToolButtonA button to open files or show them in the folder.
-
class
spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenSQLiteFileButton(file_path, ds_form)[source]¶ Bases:
spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenFileButtonA button to open sqlite files, show them in the folder, or add them to the project.
-
class
spinetoolbox.spine_db_editor.widgets.custom_qwidgets.ShootingLabel(origin, destination, parent=None, duration=1200)[source]¶ Bases:
PySide2.QtWidgets.QLabel