A widget that shows all data associated to a switch.
More...
|
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.
|
|
A widget that shows all data associated to a switch.
◆ __init__()
def switchgui.SwitchWidget.__init__ |
( |
|
self, |
|
|
|
switch, |
|
|
|
hwobject |
|
) |
| |
Create a switch widget.
- Parameters
-
dict | switch: 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:
- gui/switcher/switchgui.py