TaurusModelSelectorTree

Inheritance diagram of TaurusModelSelectorTree
class TaurusModelSelectorTree(parent=None, selectables=None, buttonsPos=None, designMode=None)[source]

Import from taurus.qt.qtgui.panel as:

from taurus.qt.qtgui.panel import TaurusModelSelectorTree
UpdateAttrs
addModels
addModelsToList(models)[source]

Add given models to the selected models list

getListedModels()[source]

returns the list of models that have been added

Parameters:

asMimeData (bool) – If False (default), the return value will be a list of models. If True, the return value is a QMimeData containing at least TAURUS_MODEL_LIST_MIME_TYPE and text/plain MIME types. If only one model was selected, the mime data also contains a TAURUS_MODEL_MIME_TYPE.

Returns:

the type of return depends on the value of asMimeData

Return type:

list<str> or QMimeData

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

getSelectedModels()[source]
isSingleModelMode()[source]

Returns True if the selection is limited to just one model. Returns False otherwise.

Returns:

Return type:

bool

onAddSelected()[source]
resetListedModels()[source]

Equivalent to setListedModels([])

resetSingleModelMode()[source]

Equivalent to setSingleModelMode(False)

setButtonsPos(buttonsPos)[source]
setListedModels(models)[source]

Adds the given list of models to the widget list

setSingleModelMode(single)[source]

sets whether the selection should be limited to just one model (single=True) or not (single=False)

treeView()[source]