Pause so that screenshots are not empty.

This commit is contained in:
Rodrigo Girão Serrão
2022-11-23 17:09:53 +00:00
parent e0b5722828
commit bc1298b85b
3 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ Let's look at a trivial Textual app.
=== "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`.

View File

@@ -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:
```{.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*).

View File

@@ -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:
```{.textual path="docs/examples/guide/styles/screen.py"}
```{.textual path="docs/examples/guide/styles/screen.py" press="_"}
```
## Styling widgets