diff --git a/docs/guide/CSS.md b/docs/guide/CSS.md index 8579d9a15..9dc1f6fb2 100644 --- a/docs/guide/CSS.md +++ b/docs/guide/CSS.md @@ -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`. diff --git a/docs/guide/app.md b/docs/guide/app.md index d36080333..be8a3fa5a 100644 --- a/docs/guide/app.md +++ b/docs/guide/app.md @@ -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*). diff --git a/docs/guide/styles.md b/docs/guide/styles.md index 95dff6435..0c3766e2c 100644 --- a/docs/guide/styles.md +++ b/docs/guide/styles.md @@ -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