TaurusScrollArea

Inheritance diagram of TaurusScrollArea
class TaurusScrollArea(parent=None, designMode=False)[source]

This is a Qt.QScrollArea 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 TaurusScrollArea
from taurus.qt.qtgui.display import TaurusLabel

widget = TaurusScrollArea()
layout = Qt.QVBoxLayout()
widget.setLayout(layout)
widget.model = 'sys/database/2'
stateWidget = TaurusLabel()
layout.addWidget(stateWidget)
stateWidget.model = 'sys/database/2/state'

Import from taurus.qt.qtgui.container as:

from taurus.qt.qtgui.container import TaurusScrollArea
applyPendingChanges()[source]
getPendingOperations()[source]

Returns the sequence of pending operations

Returns:

a list of pending operations

Return type:

sequence<taurus.core.taurusoperation.TaurusOperation>

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 }
Returns:

a map with pertinent designer information

Return type:

dict

hasPendingOperations()[source]

Returns if the component has pending operations

Returns:

True if there are pending operations or False otherwise

Return type:

bool

model

Returns the model name for this component.

Parameters:

key (object) – the model key. Defaults to first element of .modelKeys

Returns:

the model name.

Return type:

str

modelChanged
resetPendingChanges()[source]
resetPendingOperations()[source]

Clears the list of pending operations

showQuality

Returns if showing the quality as a background color

Returns:

True if showing the quality or False otherwise

Return type:

bool

useParentModel

(deprecated))