TaurusGroupBox

Inheritance diagram of 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.QBoxLayout()
widget.setLayout(layout)
widget.model = 'sys/database/2'
stateWidget = TaurusValueLabel()
layout.addWidget(stateWidget)
stateWidget.useParentModel = True
stateWidget.model = '/state'
applyPendingChanges()[source]
getDisplayValue()[source]
getPrefixText()[source]
classmethod getQtDesignerPluginInfo()[source]
getSuffixText()[source]
model

Returns the model name for this component.

Return type::class:~`str`
Returns:the model name.
pendingOperationsChanged(yesno)[source]
prefixText

prefix text (optional)

resetPendingChanges()[source]
setPrefixText(prefix)[source]
setSuffixText(suffix)[source]
showQuality

Returns if showing the quality as a background color

Return type::class:~`bool`
Returns:True if showing the quality or False otherwise
showText

Returns if showing the display value

Return type::class:~`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::class:~`bool`
Returns:True if using parent model or False otherwise