spinetoolbox.widgets.toolbars

Functions to make and handle QToolBars.

author:
  1. Savolainen (VTT)
date:

19.1.2018

Module Contents

Classes

MainToolBar A toolbar to add items using drag and drop actions.
class spinetoolbox.widgets.toolbars.MainToolBar(parent)[source]

Bases: PySide2.QtWidgets.QToolBar

A toolbar to add items using drag and drop actions.

Parameters:parent (ToolboxUI) – QMainWindow instance
setup(self)[source]
add_project_item_list_view(self)[source]
add_project_item_spec_list_view(self)[source]
add_execute_buttons(self)[source]
add_remove_all_button(self)[source]
remove_all(self, checked=False)[source]

Slot for handling the remove all tool button clicked signal. Calls ToolboxUI remove_all_items() method.

execute_project(self, checked=False)[source]

Slot for handling the Execute project tool button clicked signal.

execute_selected(self, checked=False)[source]

Slot for handling the Execute selected tool button clicked signal.

stop_execution(self, checked=False)[source]

Slot for handling the Stop execution tool button clicked signal.