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.
Add new value-name associations to the combobox.
... seealso: setValueNames()
Parameters: | names (:class:~`sequence` <:class:~`tuple`>) – A sequence of (name,value) tuples, where each attribute value gets a name for display |
---|
whether autoApply mode is enabled or not.
Return type: | :class:~`bool` |
---|---|
Returns: |
whether forcedApply mode is enabled or not.
Return type: | :class:~`bool` |
---|---|
Returns: |
reimplemented from TaurusBaseWritableWidget
Get the value that the widget is displaying now, not the value of the attribute.
Returns the corresponding name in the combobox out of a value (or a default value if not found).
Parameters: |
|
---|
reimplemented to emit an ‘applied()’ signal when Enter (or Return) key is pressed
Returns the model name for this component.
Return type: | :class:~`str` |
---|---|
Returns: | the model name. |
reimplemented from TaurusBaseWritableWidget
reimplemented from TaurusBaseWritableWidget
Reimplemented from TaurusBaseWritableWidget.setModel()
access to QCombobox.setModel()
Set the value for the widget to display, not the value of the attribute.
Sets the correspondence between the values to be applied and their associated text to show in the combobox.
Parameters: | names (:class:~`sequence` <:class:~`tuple`>) – A sequence of (name,value) tuples, where each attribute value gets a name for display |
---|
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).
reimplemented from TaurusBaseWritableWidget
Returns whether this component is using the parent model
Return type: | :class:~`bool` |
---|---|
Returns: | True if using parent model or False otherwise |
slot called to emit a valueChanged signal when the currentIndex is changed