TaurusTreeDeviceItem
¶
digraph inheritance8bd9be3188 {
bgcolor=transparent;
rankdir=UD;
ratio=compress;
size="8.0, 12.0";
"TaurusBaseTreeItem" [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="A generic node"];
"TaurusTreeDbBaseItem" [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];
"TaurusBaseTreeItem" -> "TaurusTreeDbBaseItem" [arrowsize=0.5,style="setlinewidth(0.5)"];
"TaurusTreeDeviceItem" [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="A node designed to represent a device"];
"TaurusTreeDbBaseItem" -> "TaurusTreeDeviceItem" [arrowsize=0.5,style="setlinewidth(0.5)"];
}
-
class
TaurusTreeDeviceItem
(model, data, parent=None)[source]¶ Bases:
taurus.qt.qtcore.model.taurusdatabasemodel.TaurusTreeDbBaseItem
A node designed to represent a device
-
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
-
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
-