TaurusGraphicsItem

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

Bases: taurus.qt.qtgui.base.taurusbase.TaurusBaseComponent

Base class for all Taurus Graphics Items

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()[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.

Return type

class TaurusModel or None

Returns

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

getName()[source]
getParentTaurusComponent()[source]

Returns a parent Taurus component or None if no parent TaurusBaseComponent is found.

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.

Return type

bool

Returns

whether or not this component is read-only

setContextMenu(menu)[source]

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

setModel(model)[source]

Sets/unsets the model name for this component

Parameters

model (str) – the new model name

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

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