TaurusTreeDeviceItem

Inheritance diagram of TaurusTreeDeviceItem
class TaurusTreeDeviceItem(model, data, parent=None)[source]

A node designed to represent a device

Import from taurus.qt.qtcore.model as:

from taurus.qt.qtcore.model import TaurusTreeDeviceItem
child(row)[source]

Returns the child in the given row

Returns:

the child node for the given row

Return type:

TaurusTreeBaseItem

childCount()[source]

Returns the number of childs for this node

Returns:

number of childs for this node

Return type:

int

data(index)[source]

Returns the data of this node for the given index

Returns:

the data for the given index

Return type:

object

hasChildren()[source]
mimeData(index)[source]
role()[source]

Returns the prefered role for the item. This implementation returns taurus.core.taurusbasetypes.TaurusElementType.Unknown

This method should be able to return any kind of python object as long as the model that is used is compatible.

Returns:

the role in form of element type

Return type:

taurus.core.taurusbasetypes.TaurusElementType

updateChilds()[source]