TaurusGraphicsItem

Inheritance diagram of TaurusGraphicsItem
class TaurusGraphicsItem(name=None, parent=None)[source]

Base class for all Taurus Graphics Items

Import from taurus.qt.qtgui.graphic as:

from taurus.qt.qtgui.graphic import TaurusGraphicsItem
contextMenu()[source]
fireEvent(evt_src=None, evt_type=None, evt_value=None)[source]

fires a value changed event to all listeners

getExtensions()[source]

Any in ExtensionsList,noPrompt,standAlone,noTooltip,noSelect,ignoreRepaint, shellCommand,className,classParams

getModelClass(**kwargs)[source]

Return the class object for the widget. Default behavior is to do a ‘best effort’ to determine which model type corresponds to the current model name. Overwrite as necessary.

Parameters:

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

Returns:

The class object corresponding to the type of Taurus model this widget handles or None if no valid class is found.

Return type:

class TaurusModel or None

getName()[source]
getParentTaurusComponent(**kwargs)

Deprecated since version 5.1.0: Use _getTaurusParentItem() instead

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

setContextMenu(menu)[source]

Context Menu must be a list of tuples (ActionName,ActionMethod), empty tuples insert separators between options.

setModel(model, **kwargs)[source]

Sets/unsets the model name for the given key. If key is MLIST, a model is set for each name in the model sequence, new model keys are automatically added to the object’s modelList attribute and the corresponding models are attached using those keys. The new keys are of the form (MLIST, i) where i is the index of the corresponding model name in the model sequence.

Parameters:
  • model (str (or sequence of str if key is MLIST)) – the new model name. If key is MLIST, model is expected to be a sequence of model names.

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

setName(name)[source]
updateStyle()[source]

Method called when the component detects an event that triggers a change in the style.