TreeItem (hwx.gui)¶
An item in a Tree.
- Inherits:
Public Methods¶
add (self, text, **kwds) clear (self) ensureVisible (self) getChildren (self) remove (self) selectAndShow (self, clear=True)
Method Details¶
-
add
(self, text, **kwds)
Adds a TreeItem to the Tree.
param text: | The text that gets displayed. |
---|---|
type text: | str, optional |
returns: | The added TreeItem. |
rtype: | TreeItem |
-
clear
(self)
Removes all the children from the tree.
-
ensureVisible
(self)¶
Ensures this TreeItem is visible.
-
getChildren
(self)¶
Overloaded Widget method for ‘children’ property.
-
remove
(self)
Removes the item from the Tree.
-
selectAndShow
(self, clear=True)¶
Selects and makes this TreeItem visible.