TangoConfigLineEdit
¶

-
class
TangoConfigLineEdit
(qt_parent=None, designMode=False)[source]¶ Bases:
PyQt4.QtGui.QLineEdit
,taurus.qt.qtgui.base.taurusbase.TaurusBaseWritableWidget
-
autoApply
¶ whether autoApply mode is enabled or not.
Return type: bool
Returns:
-
forcedApply
¶ whether forcedApply mode is enabled or not.
Return type: bool
Returns:
-
getValue
()[source]¶ This method must be implemented in derived classes to return the value to be written. Note that this may differ from the displayed value (e.g. for a numeric value being edited by a QLineEdit-based widget, the displayed value will be a string while getValue will return a number)
-
model
¶ Returns the model name for this component.
Return type: str
Returns: the model name.
-
notifyValueChanged
()[source]¶ Subclasses should connect some particular signal to this method for indicating that something has changed. e.g., a QLineEdit should connect its “textChanged” signal…
-
setModel
(model)[source]¶ Sets/unsets the model name for this component
Parameters: model ( str
) – the new model name
-
setValue
(v)[source]¶ This method must be implemented in derived classes to provide a (widget-specific) way of updating the displayed value based on a given attribute value
Parameters: v – The attribute value
-
writeValue
()[source]¶ Writes the value to the attribute, either by applying pending operations or (if the ForcedApply flag is True), it writes directly when no operations are pending
It emits the applied signal if apply is not aborted.
Parameters: forceApply ( bool
) – If True, it behaves as in forceApply mode (even if the forceApply mode is disabled bysetForceApply()
)
-