:right-sidebar: True TreeNode =================================================================== .. currentmodule:: gi.repository.GLib .. versionadded:: 2.68 .. class:: TreeNode(*args, **kwargs) :no-contents-entry: An opaque type which identifies a specific node in a :obj:`~gi.repository.GLib.Tree`\. Methods ------- .. rst-class:: interim-class .. class:: TreeNode :no-index: .. method:: key() -> ~typing.Any | None Gets the key stored at a particular tree node. .. versionadded:: 2.68 .. method:: next() -> ~gi.repository.GLib.TreeNode | None Returns the next in-order node of the tree, or :const:`None` if the passed node was already the last one. .. versionadded:: 2.68 .. method:: previous() -> ~gi.repository.GLib.TreeNode | None Returns the previous in-order node of the tree, or :const:`None` if the passed node was already the first one. .. versionadded:: 2.68 .. method:: value() -> ~typing.Any | None Gets the value stored at a particular tree node. .. versionadded:: 2.68