From 211280e0be857d828f91bad35c53799e90b008a3 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Thu, 26 Jan 2023 12:37:57 +0100 Subject: [PATCH] Fixed wording of tree node docs --- docs/widgets/tree.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/widgets/tree.md b/docs/widgets/tree.md index 1667e11e1..7f0772566 100644 --- a/docs/widgets/tree.md +++ b/docs/widgets/tree.md @@ -21,7 +21,7 @@ The example below creates a simple tree. --8<-- "docs/examples/widgets/tree.py" ``` -A each tree widget has a "root" attribute which is an instance of a [TreeNode][textual.widgets.tree.TreeNode]. Call [add()][textual.widgets.tree.TreeNode.add] or [add_leaf()][textual.widgets.tree,TreeNode.add_leaf] to add new nodes underneath the root. Both these methods return a TreeNode for the child, so you can add more levels. +Tree widgets have a "root" attribute which is an instance of a [TreeNode][textual.widgets.tree.TreeNode]. Call [add()][textual.widgets.tree.TreeNode.add] or [add_leaf()][textual.widgets.tree,TreeNode.add_leaf] to add new nodes underneath the root. Both these methods return a TreeNode for the child which you can use to add additional levels. ## Reactive Attributes