taurus taurus

Previous topic

TaurusValueCheckBox

Next topic

TaurusValueLineEdit

This Page

TaurusValueComboBox

Inheritance diagram of TaurusValueComboBox

class TaurusValueComboBox(parent=None, designMode=False)

Bases: PyQt4.QtGui.QComboBox, taurus.qt.qtgui.base.taurusbase.TaurusBaseWritableWidget

This widget shows a combobox that offers a limited choice of values that can be set on an attribute.

addValueNames(names)
autoApply
forcedApply
classmethod getQtDesignerPluginInfo()
getValue()

Get the value that the widget is displaying now, not the value of the attribute.

getValueString(value, default='UNKNOWN(%s)')

Returns the corresponding string in the combobox out of a value.

keyPressEvent(event)
model

Returns the model name for this component.

Return type::class:~`str`
Returns:the model name.
postDetach()
preAttach()
setModel(m)
setQModel(*args, **kwargs)
setValue(value)

Set the value for the widget to display, not the value of the attribute.

setValueNames(names)
teachDisplayTranslationToWidget(widget, default='UNKNOWN(%s)')

Makes a label object change the displayed text by the corresponding value of the combobox. This is implemented for the general case and may be not what you expect in some cases (as for example, it fires a fake periodic event which may be problematic if these are being filtered out).

updateStyle()
useParentModel

Returns whether this component is using the parent model

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