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.

initialize()[source]

This method is called right before the main application starts.

terminate()[source]

This method is called right before the main application ends.

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.

setStyleClass(style_class)[source]

Set the QSS style class for the widget

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.

class qtpyvcp.widgets.base_widgets.base_widget.HALWidget(parent=None)[source]

HAL Widget

This widget should be used as the base class for HAL widgets. ToDo: Implement HAL functionality.

class qtpyvcp.widgets.base_widgets.base_widget.VCPButton(parent=None)[source]

VCP Button Widget

This is a general purpose button widget for displaying data and other uses that do not involve user interaction.

mousePressEvent(self, e: QMouseEvent)[source]
mouseReleaseEvent(self, e: QMouseEvent)[source]