TaurusBaseTreeItem

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

Bases: object

A generic node

DisplayFunc

alias of builtins.str

appendChild(child)[source]

Adds a new child node

Parameters

child (TaurusTreeBaseItem) – child to be added

child(row)[source]

Returns the child in the given row

Return type

TaurusTreeBaseItem

Returns

the child node for the given row

childCount()[source]

Returns the number of childs for this node

Return type

int

Returns

number of childs for this node

data(index)[source]

Returns the data of this node for the given index

Return type

object

Returns

the data for the given index

depth()[source]

Depth of the node in the hierarchy

Return type

int

Returns

the node depth

display()[source]

Returns the display string for this node

Return type

str

Returns

the node’s display string

hasChildren()[source]
icon(index)[source]
itemData()[source]

The internal itemData object

Return type

object

Returns

object holding the data of this item

mimeData(index)[source]
parent()[source]

Returns the parent node or None if no parent exists

Return type

TaurusTreeBaseItem

Returns

the parent node

qdisplay(**kwargs)

Deprecated since version 4.5: Use display instead

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

row()[source]

Returns the row for this node

Return type

int

Returns

row number for this node

setData(index, data)[source]

Sets the node data

Parameters

data (object) – the data to be associated with this node

toolTip(index)[source]