Qudi
Public Member Functions | Public Attributes | List of all members
switchgui.SwitchWidget Class Reference

A widget that shows all data associated to a switch. More...

Inheritance diagram for switchgui.SwitchWidget:
Inheritance graph
[legend]
Collaboration diagram for switchgui.SwitchWidget:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, switch, hwobject)
 Create a switch widget. More...
 
def toggleSwitch (self)
 Invert the state of the switch associated with this widget.
 
def switchStateUpdated (self)
 Get state of switch from hardware module and adjust checkbox to correct value.
 

Public Attributes

 switch
 
 hw
 

Detailed Description

A widget that shows all data associated to a switch.

Constructor & Destructor Documentation

◆ __init__()

def switchgui.SwitchWidget.__init__ (   self,
  switch,
  hwobject 
)

Create a switch widget.

Parameters
dictswitch: dict that contains reference to hardware module as 'hw' and switch number as 'n'.

The documentation for this class was generated from the following file: