TaurusLCD
- class TaurusLCD(parent=None, designMode=False)[source]
A Taurus-enabled
Qt.QLCDNumber
widget. Its text can represent either the rvalue or wvalue magnitude (or nothing), and the background can colour-code the attribute quality or the device state (or nothing)Import from
taurus.qt.qtgui.display
as:from taurus.qt.qtgui.display import TaurusLCD
- DefaultBgRole = 'quality'
- DefaultFgRole = 'value'
- DefaultModelIndex = None
- DefaultShowText = True
- bgRole
This property holds the background role. Valid values are ‘’/’None’, ‘quality’, ‘state’
Access functions:
- fgRole
This property holds the foreground role. Valid values are:
‘’/’None’ - no value is displayed
‘value’ - the value is displayed
‘w_value’ - the write value is displayed
Access functions:
- getModelIndexValue()[source]
Called inside getDisplayValue to use with spectrum attributes. By default not used, but some widget might want to support this feature.
Note
getModelIndexValue() is only supported for the default model key
Override when needed.
- classmethod getQtDesignerPluginInfo()[source]
Returns pertinent information in order to be able to build a valid QtDesigner widget plugin.
The dictionary returned by this method should contain at least the following keys and values:
‘module’ : a string representing the full python module name (ex.: ‘taurus.qt.qtgui.base’)
‘icon’ : a string representing valid resource icon (ex.: ‘designer:combobox.png’)
- ‘container’a bool telling if this widget is a container widget or
not.
This default implementation returns the following dictionary:
{ 'group' : 'Taurus [Unclassified]', 'icon' : 'logos:taurus.png', 'container' : False }
- Returns:
a map with pertinent designer information
- Return type:
- handleEvent(evt_src, evt_type, evt_value)[source]
very basic and generalistic handling of events.
Override when necessary.
- isReadOnly()[source]
Determines if this component is read-only or not in the sense that the user can interact with it. Default implementation returns True.
Override when necessary.
- Returns:
whether or not this component is read-only
- Return type:
- model
This property holds the unique URI string representing the model name with which this widget will get its data from. The convention used for the string can be found here.
Access functions:
TaurusBaseWidget.getModel()
TaurusBaseWidget.resetModel()
See also
- modelIndex
This property holds the index inside the model value that should be displayed
Access functions:
See also
- setModel(m, **kwargs)[source]
Sets/unsets the model name for the given key. If key is MLIST, a model is set for each name in the model sequence, new model keys are automatically added to the object’s
modelList
attribute and the corresponding models are attached using those keys. The new keys are of the form(MLIST, i)
wherei
is the index of the corresponding model name in the model sequence.
- useParentModel
(deprecated))