TaurusGroupBox
¶

-
class
TaurusGroupBox
(parent=None, designMode=False)[source]¶ Bases:
PyQt4.QtGui.QGroupBox
,taurus.qt.qtgui.container.taurusbasecontainer.TaurusBaseContainer
This is a Qt.QGroupBox that additionally accepts a model property. This type of taurus container classes are specially useful if you define a parent taurus model to them and set all contained taurus widgets to use parent model. Example:
from taurus.qt.qtgui.container import * from taurus.qt.qtgui.display import * widget = TaurusGroupBox("Example") layout = Qt.QVBoxLayout() widget.setLayout(layout) widget.model = 'sys/database/2' stateWidget = TaurusLabel() layout.addWidget(stateWidget) stateWidget.model = 'sys/database/2/state'
-
getDisplayValue
()[source]¶ Returns a string representation of the model value associated with this component.
Parameters: - cache (
bool
) – (ignored, just for bck-compat). - fragmentName (
str
orNone
) – the returned value will correspond to the given fragmentName. If None passed, self.modelFragmentName will be used, and if None is set, the defaultFragmentName of the model will be used instead.
Return type: str
Returns: a string representation of the model value.
- cache (
-
classmethod
getQtDesignerPluginInfo
()[source]¶ Returns pertinent information in order to be able to build a valid QtDesigner widget plugin.
The dictionary returned by this method should contain at least the following keys and values: - ‘module’ : a string representing the full python module name (ex.: ‘taurus.qt.qtgui.base’) - ‘icon’ : a string representing valid resource icon (ex.: ‘designer:combobox.png’) - ‘container’ : a bool telling if this widget is a container widget or not.
This default implementation returns the following dictionary:
{ 'group' : 'Taurus [Unclassified]', 'icon' : 'logos:taurus.png', 'container' : False }
Return type: dict
Returns: a map with pertinent designer information
-
model
¶ Returns the model name for this component.
Return type: str
Returns: the model name.
-
modelChanged
¶
-
prefixText
¶ prefix text (optional)
-
showQuality
¶ Returns if showing the quality as a background color
Return type: bool
Returns: True if showing the quality or False otherwise
-
showText
¶ Returns if showing the display value
Return type: bool
Returns: True if showing the display value or False otherwise
-
suffixText
¶ suffix text (optional)
-
useParentModel
¶ Returns whether this component is using the parent model
Return type: bool
Returns: True if using parent model or False otherwise
-