TaurusValueCheckBox

Inheritance diagram of TaurusValueCheckBox
class TaurusValueCheckBox(qt_parent=None, designMode=False)[source]

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

A QCheckBox connected to a boolean writable attribute model

autoApply

whether autoApply mode is enabled or not.

Return type:bool
Returns:
forcedApply

whether forcedApply mode is enabled or not.

Return type:bool
Returns:
classmethod getQtDesignerPluginInfo()[source]

reimplemented from TaurusBaseWidget

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)

keyPressEvent(self, QKeyEvent)[source]
minimumSizeHint(self) → QSize[source]
model

Returns the model name for this component.

Return type:str
Returns:the 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
showText

Returns if showing the display value

Return type:bool
Returns:True if showing the display value or False otherwise
updateStyle()[source]

reimplemented from TaurusBaseWidget

useParentModel

Returns whether this component is using the parent model

Return type:bool
Returns:True if using parent model or False otherwise