spinetoolbox.spine_db_editor.widgets.custom_qwidgets

Custom QWidgets.

author
  1. Marin (KTH)

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

class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.DataToValueFilterWidget(parent, data_to_value, show_empty=True)[source]

Bases: spinetoolbox.widgets.custom_qwidgets.FilterWidgetBase

Filter 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.FilterWidgetBase

Filter widget class.

Init class.

Parameters
set_model(self)[source]
class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenFileButton(file_path, db_editor)[source]

Bases: PySide2.QtWidgets.QToolButton

A button to open files or show them in the folder.

open_file(self, checked=False)[source]
open_containing_folder(self, checked=False)[source]
class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenSQLiteFileButton(file_path, db_editor)[source]

Bases: OpenFileButton

A button to open sqlite files, show them in the folder, or add them to the project.

open_file(self, checked=False)[source]
class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.ShootingLabel(origin, destination, parent=None, duration=1200)[source]

Bases: PySide2.QtWidgets.QLabel

_handle_value_changed(self, value)[source]
show(self)[source]