taurus taurus

Previous topic

TaurusModelItem

Next topic

TaurusModelModel

This Page

TaurusModelList

Inheritance diagram of TaurusModelList

class TaurusModelList(parent=None, items=None, designMode=False)

Bases: PyQt4.QtGui.QListView

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.

addModels(models)

adds models to the list

Parameters:models (:class:~`list` <:class:~`str`>) – sequence of model names to be added
clear()

removes all items from the list

contextMenuEvent(event)

see QWidget.contextMenuEvent()

getModelItems()

returns the model item objects

Return type::class:~`list` <:class:~`TaurusModelItem`>
Returns:

See also

getModelList()

getModelList()

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

Return type::class:~`list` <:class:~`str`>
Returns:

See also

getModelItems()

classmethod getQtDesignerPluginInfo()
newRow(position=None)

adds an empty row before the given position

Parameters:position (:class:~`int` or :class:~`None`) – position at which the new row will be added. If None passed, it will be added at the end.
removeSelected()

removes selected items from the list