TaurusBaseContainer

Inheritance diagram of TaurusBaseContainer
class TaurusBaseContainer(name='', parent=None, designMode=False)[source]

Base class for the Taurus container widgets. 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 TaurusWidget
from taurus.qt.qtgui.display import TaurusLabel

widget = TaurusWidget()
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 TaurusBaseContainer
defineStyle()[source]
getPendingOperations()[source]

Returns the sequence of pending operations

Returns

a list of pending operations

Return type

sequence<taurus.core.taurusoperation.TaurusOperation>

handleEvent(evt_src, evt_type, evt_value)[source]

very basic and generalistic handling of events.

Override when necessary.

Parameters
  • evt_src (object or None) – object that triggered the event

  • evt_type (taurus.core.taurusbasetypes.TaurusEventType or None) – type of event

  • evt_value (object or None) – event value

hasPendingOperations()[source]

Returns if the component has pending operations

Returns

True if there are pending operations or False otherwise

Return type

bool

isReadOnly()[source]

Determines if this component is read-only or not in the sense that the user can interact with it. Default implementation returns True.

Override when necessary.

Returns

whether or not this component is read-only

Return type

bool

resetPendingOperations()[source]

Clears the list of pending operations

sizeHint()[source]
taurusChildren(objs=None)[source]

returns a list of all taurus children of this taurus container (recurses down skipping non-taurus widgets)

Parameters

objs (list<objects>) – if given, the search starts at the objects passed in this list

Returns

Return type

list<TaurusBaseWidget>

updateStyle()[source]

Updates the widget style. Default implementation just calls QWidget.update()

Override when necessary.