-
Hi, the json_tree.py example seems broken with 0.10.1 i get an import error Traceback (most recent call last):
File "/home/lovetox/projects/testtextualapp/textual/examples/json_tree.py", line 8, in <module>
from textual.widgets.tree import TreeNode
ModuleNotFoundError: No module named 'textual.widgets.tree' |
Beta Was this translation helpful? Give feedback.
Answered by
davep
Feb 11, 2023
Replies: 1 comment
-
Where did you get the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lovetox
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where did you get the
jason_tree.py
example from? By the looks of things you're attempting to use the code from themain
branch of Textual, with the library as of v0.10.1. The way thatTreeNode
is imported has changed so mixing and matching that code won't work. If you want to use the examples that work with v0.10.1 it's best to download either download the source for that release, or use the example from the v0.10.1 tag.