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
- 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
- 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:
- 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)
wherei
is the index of the corresponding model name in the model sequence.