spinetoolbox.widgets.graph_view_demo

Contains the GraphViewForm class.

author:
  1. Marin (KTH)
date:

26.11.2018

Module Contents

class spinetoolbox.widgets.graph_view_demo.GraphViewDemo(parent)[source]

Bases: spinetoolbox.widgets.state_machine_widget.StateMachineWidget

A widget that shows a demo for the graph view.

Initializes class.

Parameters:parent (GraphViewForm) –
_make_select_one(self)[source]
_make_select_more(self)[source]
_make_good_bye(self)[source]
set_up_machine(self)[source]
class spinetoolbox.widgets.graph_view_demo.SelectionAnimation(view, command, duration=2000, max_steps=4)[source]

Bases: PySide2.QtCore.QVariantAnimation

Parameters:
  • view (QAbstractItemView) –
  • command (QItemSelectionModel.SelectionFlags) –
  • duration (int) – milliseconds
  • max_steps (int) –
static _random_point(rect)[source]
updateState(self, new, old)[source]
_handle_value_changed(self, value)[source]
_handle_current_loop_changed(self, loop)[source]
_handle_finished(self)[source]