interactive DOM queries #4445
obergmartin
started this conversation in
General
Replies: 1 comment 3 replies
-
There's nothing built into Textual that is a querying repl, in a debugging sense. If it helps though I did write this tool to help people practice querying; ideally used in conjunction with the guide to CSS (which covers selectors) and the guide to DOM queries.
Note that the nodes within a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to have an interactive python prompt for making queries? I'm having difficulties navigating how widgets relate to each other (specifically how to find the root Tree node in a DirectoryTree widget to be able to run
toggle_all()
and have all folders expanded) and being able to make queries at an interactive prompt would make it easier to test what query I need to make instead of rerunning the program everytime. I've tried ipython%run myapp.py
but get an error that textual doesn't exist(!?) and I've tried using pbd with thebreakpoint()
command in my code.Beta Was this translation helpful? Give feedback.
All reactions