TaurusModelList

Inheritance diagram of TaurusModelList
class TaurusModelList(parent=None, items=None, designMode=False)[source]

A list view widget to display and manage a list of models

Tries to identify the type of model and show the state of the device/attr associated with it. It also allows drag and drop of models and sorting.

Import from taurus.qt.qtgui.panel as:

from taurus.qt.qtgui.panel import TaurusModelList
addModels(models)[source]

adds models to the list

Parameters:

models (list<str>) – sequence of model names to be added

clear()[source]

removes all items from the list

contextMenuEvent(event)[source]

see QWidget.contextMenuEvent()

dataChangedSignal
getModelItems()[source]

returns the model item objects

Returns:

Return type:

list<TaurusModelItem>

See also

getModelList()

getModelList()[source]

returns a the model names corresponding to the items in the list

Returns:

Return type:

list<str>

See also

getModelItems()

classmethod getQtDesignerPluginInfo()[source]
newRow(position=None)[source]

adds an empty row before the given position

Parameters:

position (int or None) – position at which the new row will be added. If None passed, it will be added at the end.

removeSelected()[source]

removes selected items from the list