vent.gui.widgets package¶
Submodules¶
vent.gui.widgets.components module¶
vent.gui.widgets.control module¶
vent.gui.widgets.monitor module¶
Classes
|
|
-
class
vent.gui.widgets.monitor.
Monitor
(value, update_period=0.5, enum_name=None)[source]¶ Bases:
PySide2.QtWidgets.QWidget
- Parameters
value (
Value
) –update_period (float) – update period of monitor in s
Methods
__init__
(value[, update_period, enum_name])- param value
_limits_changed
(val)check_alarm
([value])init_ui
()set_alarm
(alarm)Simple wrapper to set alarm state from a qt signal
toggle_control
(state)update_boxes
(new_values)update_limits
(new_limits)update_value
(new_value)Attributes
-
alarm
(*args, **kwargs) = <PySide2.QtCore.Signal object>¶
-
limits_changed
(*args, **kwargs) = <PySide2.QtCore.Signal object>¶
-
__init__
(value, update_period=0.5, enum_name=None)[source]¶ - Parameters
value (
Value
) –update_period (float) – update period of monitor in s
-
property
alarm_state
¶
-
set_alarm
(alarm)[source]¶ Simple wrapper to set alarm state from a qt signal
- Parameters
alarm (bool) – Whether to set as alarm state or not
-
staticMetaObject
= <PySide2.QtCore.QMetaObject object>¶
vent.gui.widgets.plot module¶
Data
Update frequency of |
|
A |
Classes
|
When initializing PlotWidget, parent and background are passed to |
-
class
vent.gui.widgets.plot.
Plot
(name, buffer_size=4092, plot_duration=5, abs_range=None, safe_range=None, color=None, units='', **kwargs)[source]¶ Bases:
pyqtgraph.widgets.PlotWidget.PlotWidget
When initializing PlotWidget, parent and background are passed to
GraphicsWidget.__init__()
and all others are passed toPlotItem.__init__()
.Methods
_safe_limits_changed
(val)set_duration
(dur)set_safe_limits
(limits)update_value
(new_value)new_value: (timestamp from time.time(), value)
-
limits_changed
(*args, **kwargs) = <PySide2.QtCore.Signal object>¶
-
staticMetaObject
= <PySide2.QtCore.QMetaObject object>¶
-
vent.gui.widgets.status_bar module¶
Classes
|
|
|
-
class
vent.gui.widgets.status_bar.
Status_Bar
[source]¶ Bases:
PySide2.QtWidgets.QWidget
Start/stop button
- Status indicator - a clock that increments with heartbeats,
or some other visual indicator that things are alright
Status bar - most recent alarm or notification w/ means of clearing
Override to give 100% oxygen and silence all alarms
Methods
init_ui
()-
staticMetaObject
= <PySide2.QtCore.QMetaObject object>¶
-
class
vent.gui.widgets.status_bar.
Message_Display
[source]¶ Bases:
PySide2.QtWidgets.QFrame
Attributes
Methods
draw_state
([state])init_ui
()update_message
(alarm)- param alarm
-
message_cleared
(*args, **kwargs) = <PySide2.QtCore.Signal object>¶
-
level_changed
(*args, **kwargs) = <PySide2.QtCore.Signal object>¶
-
property
alarm_level
¶
-
staticMetaObject
= <PySide2.QtCore.QMetaObject object>¶
-
class
vent.gui.widgets.status_bar.
HeartBeat
(update_interval=100, timeout_dur=5000)[source]¶ Bases:
PySide2.QtWidgets.QFrame
- Parameters
Methods
__init__
([update_interval, timeout_dur])- param update_interval
How often to do the heartbeat, in ms
Called every (update_interval) milliseconds to set the text of the timer.
beatheart
(heartbeat_time)init_ui
()set_indicator
([state])start_timer
([update_interval])- param update_interval
How often (in ms) the timer should be updated.
you can read the sign ya punk
-
timeout
(*args, **kwargs) = <PySide2.QtCore.Signal object>¶
-
heartbeat
(*args, **kwargs) = <PySide2.QtCore.Signal object>¶
-
start_timer
(update_interval=None)[source]¶ - Parameters
update_interval (float) – How often (in ms) the timer should be updated.
-
staticMetaObject
= <PySide2.QtCore.QMetaObject object>¶