Remove TreeNode as a pseudo-widget

This encourages importing it from `textual.widgets.tree` instead, keeping it
in line with the other changes made for #1637.

Note this is a breaking change.
This commit is contained in:
Dave Pearson
2023-01-23 17:37:58 +00:00
parent d4c71588a7
commit 4adfe69ec9
6 changed files with 7 additions and 7 deletions

View File

@@ -4,7 +4,8 @@ from pathlib import Path
from rich.text import Text
from textual.app import App, ComposeResult
from textual.widgets import Header, Footer, Tree, TreeNode
from textual.widgets import Header, Footer, Tree
from textual.widgets.tree import TreeNode
class TreeApp(App):