experimentor.views package

Submodules

experimentor.views.data_view_widget module

class experimentor.views.data_view_widget.DataViewWidget(parent=None)[source]

Bases: PyQt5.QtWidgets.QWidget

Base class that defines some common patterns for views which are meant to display data.

default_Layout

method get_layout

Type:By default, views will have a QHBoxLayout, it can be overriden when subclassing, or by changing the
data

of what specific type of data it is.

Type:This is the data being represented by the widget. This allows to define abstract methods for saving, regardless
default_layout = 'horizontal'
get_layout()[source]

Returns the layout specified as the class attribute default_layout. Override this method to provide more complex behavior.

set_layout()[source]

experimentor.views.decorators module

experimentor.views.decorators.try_except_dialog(func)[source]

Decorator to add to methods used in user interfaces. If there is a chance of an error appearing because of devices in the wrong state, etc. but the logic is not fail proof, you can use this decorator to display an error message with the stack trace instead of crashing the program.

experimentor.views.exceptions module

exception experimentor.views.exceptions.ViewException[source]

Bases: Exception

Module contents