mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
don't make demo inline
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -168,4 +168,4 @@ class CalculatorApp(App):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
CalculatorApp().run()
|
||||
CalculatorApp().run(inline=True)
|
||||
|
||||
@@ -393,4 +393,4 @@ class DemoApp(App[None]):
|
||||
|
||||
app = DemoApp()
|
||||
if __name__ == "__main__":
|
||||
app.run(inline=True)
|
||||
app.run()
|
||||
|
||||
Reference in New Issue
Block a user