klyn.gui.windows.TreeNode.hasChildren
property
public readonly property hasChildren as Boolean
Description

Whether the node owns children or expects a deferred child enumeration.

if node.hasChildren:
    tree.expandNode(node)