TaurusStateLed

Inheritance diagram of TaurusStateLed

class TaurusStateLed(parent=None, designMode=False)[source]

Bases: taurus.qt.qtgui.display.qled.QLedOld, taurus.qt.qtgui.base.taurusbase.TaurusBaseWidget

A led widget displaying the state tango attribute value

Deprecated since version 2.0: Use taurus.qt.qtgui.display.TaurusLed instead.

DEVICE_STATE_DATA = {PyTango._PyTango.DevState.ON: (0, 1), PyTango._PyTango.DevState.OFF: (1, 1), PyTango._PyTango.DevState.CLOSE: (0, 1), PyTango._PyTango.DevState.OPEN: (0, 1), PyTango._PyTango.DevState.INSERT: (0, 1), PyTango._PyTango.DevState.EXTRACT: (0, 1), PyTango._PyTango.DevState.MOVING: (0, 0), PyTango._PyTango.DevState.STANDBY: (0, 3), PyTango._PyTango.DevState.FAULT: (0, 2), PyTango._PyTango.DevState.INIT: (0, 3), PyTango._PyTango.DevState.RUNNING: (0, 0), PyTango._PyTango.DevState.ALARM: (0, 4), PyTango._PyTango.DevState.DISABLE: (1, 4), PyTango._PyTango.DevState.UNKNOWN: (1, 0), None: (1, 2)}
boolIndex
getBoolIndex()[source]
getFormatedToolTip(cache=True)[source]

The tooltip should refer to the device and not the state attribute. That is why this method is being rewritten

getLedSize()[source]
getModelClass()[source]
classmethod getQtDesignerPluginInfo()[source]
handleEvent(evt_src, evt_type, evt_value)[source]
isReadOnly()[source]
ledSize

valid values as 24 and 48

model

Returns the model name for this component.

Return type::class:~`str`
Returns:the model name.
resetBoolIndex()[source]
resetLedSize(size)[source]
setBoolIndex(i)[source]
setLedSize(size)[source]
sizeHint()[source]
useParentModel

Returns whether this component is using the parent model

Return type::class:~`bool`
Returns:True if using parent model or False otherwise