mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Pause so that screenshots are not empty.
This commit is contained in:
@@ -68,7 +68,7 @@ Let's look at a trivial Textual app.
|
|||||||
|
|
||||||
=== "Output"
|
=== "Output"
|
||||||
|
|
||||||
```{.textual path="docs/examples/guide/dom1.py"}
|
```{.textual path="docs/examples/guide/dom1.py" press="_"}
|
||||||
```
|
```
|
||||||
|
|
||||||
This example creates an instance of `ExampleApp`, which will implicitly create a `Screen` object. In DOM terms, the `Screen` is a _child_ of `ExampleApp`.
|
This example creates an instance of `ExampleApp`, which will implicitly create a `Screen` object. In DOM terms, the `Screen` is a _child_ of `ExampleApp`.
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Apps don't get much simpler than this—don't expect it to do much.
|
|||||||
|
|
||||||
If we run this app with `python simple02.py` you will see a blank terminal, something like the following:
|
If we run this app with `python simple02.py` you will see a blank terminal, something like the following:
|
||||||
|
|
||||||
```{.textual path="docs/examples/app/simple02.py"}
|
```{.textual path="docs/examples/app/simple02.py" press="_"}
|
||||||
```
|
```
|
||||||
|
|
||||||
When you call [App.run()][textual.app.App.run] Textual puts the terminal in to a special state called *application mode*. When in application mode the terminal will no longer echo what you type. Textual will take over responding to user input (keyboard and mouse) and will update the visible portion of the terminal (i.e. the *screen*).
|
When you call [App.run()][textual.app.App.run] Textual puts the terminal in to a special state called *application mode*. When in application mode the terminal will no longer echo what you type. Textual will take over responding to user input (keyboard and mouse) and will update the visible portion of the terminal (i.e. the *screen*).
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ The first line sets the [background](../styles/background.md) style to `"darkblu
|
|||||||
|
|
||||||
The second line sets [border](../styles/border.md) to a tuple of `("heavy", "white")` which tells Textual to draw a white border with a style of `"heavy"`. Running this code will show the following:
|
The second line sets [border](../styles/border.md) to a tuple of `("heavy", "white")` which tells Textual to draw a white border with a style of `"heavy"`. Running this code will show the following:
|
||||||
|
|
||||||
```{.textual path="docs/examples/guide/styles/screen.py"}
|
```{.textual path="docs/examples/guide/styles/screen.py" press="_"}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Styling widgets
|
## Styling widgets
|
||||||
|
|||||||
Reference in New Issue
Block a user