Base Widgets
This file contains the definitions of the fundamental widgets upon which all other QtPyVCP widgets are based.
- class qtpyvcp.widgets.base_widgets.base_widget.ChanList(iterable=(), /)[source]
Channel value list.
This list is intended to hold lambda functions for retrieving the current data channel values. When the list is indexed the function is called and the resulting value is returned.
- class qtpyvcp.widgets.base_widgets.base_widget.VCPPrimitiveWidget(parent=None)[source]
VCPPrimitiveWidget.
Class on which all QtPyVCP widgets should be based.
- class qtpyvcp.widgets.base_widgets.base_widget.VCPBaseWidget(parent=None)[source]
QtPyVCP Base Widget.
This class handles the rules and other things that apply to QtPyVCP widgets regardless of use.
- security = <PySide6.QtCore.Property object>
- setFlashing(flashing)[source]
Start or stop flashing.
Exposed as the Flashing rule property, so any channel expression can drive it. Re-asserting a flash that is already running is a no-op: rules re-evaluate on every channel update, and restarting the timer each time would leave the flash stuttering.
- flashOnStyleClass = <PySide6.QtCore.Property object>
- flashRate = <PySide6.QtCore.Property object>
- setStyleClass(style_class)[source]
Set the QSS style class for the widget.
Sets the Qt dynamic property ‘style’ which can be used as a QSS selector: WidgetClass[style=”error”] { color: red; }
- styleClass = <PySide6.QtCore.Property object>
- rules = <PySide6.QtCore.Property object>
- class qtpyvcp.widgets.base_widgets.base_widget.VCPWidget(parent=None)[source]
VCP Widget
This is a general purpose widget for displaying data and other uses that do not involve user interaction.
- class qtpyvcp.widgets.base_widgets.base_widget.CMDWidget(parent=None)[source]
Command Widget
This widget should be used as the base class for all widgets that control the machine. Eventually additional functionality will be added to this class.