TaurusModelList

digraph inheritance73019e48cd { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "QAbstractItemView" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QAbstractItemView(parent: QWidget = None)"]; "QAbstractScrollArea" -> "QAbstractItemView" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QAbstractScrollArea" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QAbstractScrollArea(parent: QWidget = None)"]; "QFrame" -> "QAbstractScrollArea" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QFrame" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QFrame(parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())"]; "QWidget" -> "QFrame" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QListView" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QListView(parent: QWidget = None)"]; "QAbstractItemView" -> "QListView" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QObject" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QObject(parent: QObject = None)"]; "wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QPaintDevice" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QPaintDevice()"]; "simplewrapper" -> "QPaintDevice" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QWidget" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QWidget(parent: QWidget = None, flags: Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags())"]; "QObject" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QPaintDevice" -> "QWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusModelList" [URL="#taurus.qt.qtgui.panel.TaurusModelList",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A list view widget to display and manage a list of models"]; "QListView" -> "TaurusModelList" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
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