TaurusTreeServerItem

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

Bases: taurus.qt.qtcore.model.taurusdatabasemodel.TaurusTreeDbBaseItem

A node designed to represent a server

data(index)[source]

Returns the data of this node for the given index

Return type

object

Returns

the data for the given index

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.

Return type

TaurusElementType

Returns

the role in form of element type