MasterToolbox

class cued_datalogger.api.toolbox.MasterToolbox(parent=None)

Bases: PyQt5.QtWidgets.QStackedWidget

A QStackedWidget of one or more Toolboxes that toggle collapse when the tabBar is double clicked.

In the MasterToolbox, only the top Toolbox is expanded, and all the others are collapsed. When the index is changed with set_toolbox(), the top Toolbox is changed and all other Toolboxes are collapsed and hidden. The MasterToolbox is the normal location for all tools and controls in the DataLogger.

Attributes

Inherited attributes : See PyQt5.QtWidgets.QStackedWidget for inherited attributes.

Methods

add_toolbox(toolbox)

Add a Toolbox to the MasterToolbox stack.

set_toolbox(toolbox_index)

Set current Toolbox to the Toolbox given by toolbox_index, by quick-collapsing and hiding all of the other Toolboxes. The new current Toolbox will be in the same collapse/expand state as the former current Toolbox (ie if the previous Toolbox was collapsed, the new current Toolbox will be collapsed, and vice versa).

toggle_collapse()

Toggle collapse of the MasterToolbox by toggling the collapse of the Toolbox that is on top.