mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user