don't make demo inline

This commit is contained in:
Will McGugan
2024-03-30 09:00:18 +00:00
parent 623d21b47b
commit 5606a40f07
3 changed files with 4 additions and 2 deletions

View File

@@ -40,6 +40,8 @@ If you hit ++ctrl+c++ Textual will exit application mode and return you to the c
#### Run inline
!!! tip "Added in version 0.45.0"
You can also run apps in _inline_ mode, which will cause the app to appear beneath the prompt (and won't go in to application mode).
Inline apps are useful for tools that integrate closely with the typical workflow of a terminal.

View File

@@ -168,4 +168,4 @@ class CalculatorApp(App):
if __name__ == "__main__":
CalculatorApp().run()
CalculatorApp().run(inline=True)

View File

@@ -393,4 +393,4 @@ class DemoApp(App[None]):
app = DemoApp()
if __name__ == "__main__":
app.run(inline=True)
app.run()