Launching a Textual application with App().run() while enabling the dev tools #6212
Unanswered
dolfandringa
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Could you use the -c switch to run the command that launches the Textual app? For example something like |
Beta Was this translation helpful? Give feedback.
2 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.
-
I am using Typer in my software project for many reasons, most of them with commands not involving Textual. I also have a tool built with Textual. I would like to launch that tool also from a Typer command (with more typer specific logic in there too), with
StopwatchApp().run(). But this does not connect the app to the textual console nor does it enable the devtools. Is there any way to launch a Textual app from python code, rather than using thetextualcommandline, and still have it use the devtools or at least the Textual console for logging?Here is a MRE:
Beta Was this translation helpful? Give feedback.
All reactions