taurus taurus

Previous topic

TaurusLCDValue

Next topic

TaurusLed

This Page

TaurusLabel

Inheritance diagram of TaurusLabel

class TaurusLabel(parent=None, designMode=False)

Bases: PyQt4.QtGui.QLabel, taurus.qt.qtgui.base.taurusbase.TaurusBaseWidget

DefaultAlignment = <PyQt4.QtCore.Alignment object at 0xed58d1ec>
DefaultAutoTrim = True
DefaultBgRole = 'quality'
DefaultFgRole = 'value'
DefaultModelIndex = None
DefaultPrefix = ''
DefaultShowText = True
DefaultSuffix = ''
autoTrim

This property holds the

Access functions:

bgRole

This property holds the background role. Valid values are ‘’/’None’, ‘quality’, ‘state’

Access functions:

controller()
controllerUpdate()
dragEnabled

This property holds the

Access functions:

  • TaurusLabel.isDragEnabled()
  • TaurusLabel.setDragEnabled()
  • TaurusLabel.resetDragEnabled()
fgRole

This property holds the foreground role (the text). Valid values are:

  1. ‘’/’None’ - no value is displayed
  2. ‘value’ - the value is displayed
  3. ‘w_value’ - the write value is displayed
  4. ‘quality’ - the quality is displayed
  5. ‘state’ - the device state is displayed

Access functions:

getAutoTrim()
getBgRole()
getFgRole()
getModelIndex()
getModelIndexValue()
getModelMimeData()
getPrefixText()
classmethod getQtDesignerPluginInfo()
getSuffixText()
handleEvent(evt_src, evt_type, evt_value)
hasDynamicTextInteractionFlags()
isReadOnly()
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.

In case the property useParentModel is set to True, the model text must start with a ‘/’ followed by the attribute name.

Access functions:

See also

model concept

modelIndex

This property holds the index inside the model value that should be displayed

Access functions:

See also

model concept

prefixText

This property holds a prefix text

Access functions:

resetAutoTrim()
resetBgRole()
resetFgRole()
resetModelIndex()
resetPrefixText()
resetSuffixText()
resetTextInteractionFlags()
resizeEvent(event)
setAutoTrim(trim)
setBgRole(bgRole)
setDynamicTextInteractionFlags(flags)
setFgRole(fgRole)
setModel(m)
setModelIndex(modelIndex)
setPrefixText(prefix)
setSuffixText(suffix)
setTextInteractionFlags(flags)
showValueDialog(*args)
suffixText

This property holds a suffix text

Access functions:

textInteractionFlags

Specifies how the label should interact with user input if it displays text.

useParentModel

This property holds whether or not this widget should search in the widget hierarchy for a model prefix in a parent widget.

Access functions:

  • TaurusBaseWidget.getUseParentModel()
  • TaurusBaseWidget.setUseParentModel()
  • TaurusBaseWidget.resetUseParentModel()

See also

model concept