spinetoolbox.spine_db_editor.widgets.custom_qwidgets

Custom QWidgets.

Module Contents

Classes

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

ProgressBarWidget

TimeLineWidget

LegendWidget

ExportAsVideoDialog

class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.OpenFileButton(file_path, progress, db_editor)[source]

Bases: PySide6.QtWidgets.QWidget

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

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

Bases: OpenFileButton

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

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

Bases: PySide6.QtWidgets.QLabel

_handle_value_changed(value)[source]
show()[source]
class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.ProgressBarWidget(parent=None)[source]

Bases: PySide6.QtWidgets.QWidget

set_layout_generator(layout_generator)[source]
paintEvent(event)[source]
class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.TimeLineWidget(parent=None)[source]

Bases: PySide6.QtWidgets.QWidget

index_changed[source]
_update_step_len(value)[source]
_refresh_button_icon()[source]
_play_pause()[source]
_update_playback()[source]
_handle_value_changed(value)[source]
set_index_range(min_index, max_index)[source]
get_index_range()[source]
class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.LegendWidget(parent=None)[source]

Bases: PySide6.QtWidgets.QWidget

_BASE_HEIGHT = 30[source]
_SPACING = 6[source]
row_count()[source]
set_legend(legend)[source]
static _paint_color_bar(painter, cell)[source]
static _paint_volume_bar(painter, cell)[source]
paintEvent(ev)[source]
paint(painter, rect)[source]
class spinetoolbox.spine_db_editor.widgets.custom_qwidgets.ExportAsVideoDialog(start, stop, parent=None)[source]

Bases: PySide6.QtWidgets.QDialog

_handle_start_dt_changed(start_dt)[source]
_handle_stop_dt_changed(stop_dt)[source]
selections()[source]