================== TreeItem (hwx.gui) ================== An item in a Tree. Inherits: - :ref:`Widget (hwx.gui)` ---------- Properties ---------- +-----------+-----------+ | selected_ | text_ | +-----------+-----------+ -------------- Public Methods -------------- +-----------------------------------+ | add_ (self, text, **kwds) | +-----------------------------------+ | clear_ (self) | +-----------------------------------+ | ensureVisible_ (self) | +-----------------------------------+ | getChildren_ (self) | +-----------------------------------+ | remove_ (self) | +-----------------------------------+ | selectAndShow_ (self, clear=True) | +-----------------------------------+ ---------------- Property Details ---------------- .. _selected: .. method:: selected The state of being selected. .. _text: .. method:: text The text to be displayed. -------------- Method Details -------------- .. _add: .. method:: 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: .. method:: clear(self) Removes all the children from the tree. .. _ensureVisible: .. method:: ensureVisible(self) Ensures this TreeItem is visible. .. _getChildren: .. method:: getChildren(self) Overloaded Widget method for 'children' property. .. _remove: .. method:: remove(self) Removes the item from the Tree. .. _selectAndShow: .. method:: selectAndShow(self, clear=True) Selects and makes this TreeItem visible.