Item in a TreeModel.
More...
|
| parentItem |
|
| itemData |
|
| childItems |
|
◆ __init__()
def automation.TreeItem.__init__ |
( |
|
self, |
|
|
|
data, |
|
|
|
parent = None |
|
) |
| |
Create TreeItem.
- Parameters
-
data | object: data stored in TreeItem |
parent | Treeitem: parent of this item |
◆ appendChild()
def automation.TreeItem.appendChild |
( |
|
self, |
|
|
|
item |
|
) |
| |
Append child node to tree item.
- Parameters
-
◆ child()
def automation.TreeItem.child |
( |
|
self, |
|
|
|
row |
|
) |
| |
Get child item for specific index.
- Parameters
-
row | int: row index for child item |
- Returns
- : child item in given row
◆ childCount()
def automation.TreeItem.childCount |
( |
|
self | ) |
|
Get number of children.
- Returns
- int: number of children
◆ columnCount()
def automation.TreeItem.columnCount |
( |
|
self | ) |
|
Return number of columns.
- Returns
- int: number of columns in data
◆ data()
def automation.TreeItem.data |
( |
|
self, |
|
|
|
column |
|
) |
| |
Get data from a given column.
, column int: column index
- Returns
- : data stored in column
◆ parent()
def automation.TreeItem.parent |
( |
|
self | ) |
|
Get parent item.
- Returns
- TreeItem: parent item
◆ row()
def automation.TreeItem.row |
( |
|
self | ) |
|
Get our own row index.
- Returns
- int: row index in parent item
The documentation for this class was generated from the following file: