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
CustomInputDialog
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, ds_form)[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, ds_form)[source]

Bases: spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenFileButton

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

open_file(self, checked=False)[source]
add_to_project(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]
class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.CustomInputDialog(parent, title)[source]

Bases: PySide2.QtWidgets.QDialog

accept(self, item=None)[source]
reject(self)[source]
_handle_item_double_clicked(self, item)[source]
_handle_item_changed(self, item)[source]
classmethod get_item(cls, parent, title, label, items, icons=None, editable_text='')[source]