daplis_rtp.gui.widgets.controls module
The controls the tabs are made of, built once and used by all of them.
Four tabs choose a daughterboard, a motherboard, a firmware version and
a number of timestamps. Before this module each of them built those
four itself, which is how the “Full Sensor” combo boxes came to be 80 px
Expanding while everyone else’s were 100 px Fixed, and how one
tab came to offer a motherboard the others did not. A control that
exists once cannot drift.
- class daplis_rtp.gui.widgets.controls.DirectoryPicker(parent=None, caption='Data folder', title='Select Directory', tip=None)[source]
Bases:
QWidgetA caption, a path, and a Browse button - one header row’s worth.
Every tab that reads data files has one of these, and on the full sensor tab there are two, which is why the shell reserves two header rows on every tab: the plot has to start at the same height whether a tab fills both or one.
- changed
str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- class daplis_rtp.gui.widgets.controls.LimitPair(parent=None, caption='x limits', spin=False, maximum=255, values=(0, 255), tip=None)[source]
Bases:
QWidgetTwo edges of one axis, side by side under the plot.
spinbuilds the integer pair the pixel axes use, where every value is a pixel and both edges always have one; the float pair is for the axes where an edge can simply be left to autoscale.- __init__(parent=None, caption='x limits', spin=False, maximum=255, values=(0, 255), tip=None)[source]
- changed
str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- class daplis_rtp.gui.widgets.controls.ReadoutStrip(parent=None)[source]
Bases:
QWidgetA row of ‘name: value’ readings, for the second header row.
The tabs that need only one browse row put a reading here instead of leaving the row empty - which is how the top-most pixels came out of the control column, where they were costing every tab in the application a row of height.
- daplis_rtp.gui.widgets.controls.firmware_combo(parent=None)[source]
Not editable: the unpacking only knows these two.
- daplis_rtp.gui.widgets.controls.float_field(parent=None, placeholder='auto')[source]
A field for one axis limit, or nothing at all.
A line edit rather than a spin box because a spin box has no way to say “unset”, and an edge left unset is one that autoscales. Accepts ‘-1.5’, ‘2e-3’, ‘10e3’; the range is deliberately the whole of float, since a photon rate and a stream length share no scale worth capping.
- daplis_rtp.gui.widgets.controls.float_value(field)[source]
A field’s value as a float, or
Nonewhen it is unset.A field left empty - or holding a fragment the validator tolerated while typing, such as a lone ‘-’ or ‘e’ - means that edge should autoscale rather than break the plot.