Merge pull request #888 from davep/css-docs-screen-import

Modify the screen examples to import Screen from textual.screen
This commit is contained in:
Dave Pearson
2022-10-13 11:12:07 +01:00
committed by GitHub
3 changed files with 13 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
from textual.app import App, Screen, ComposeResult
from textual.app import App, ComposeResult
from textual.screen import Screen
from textual.widgets import Static

View File

@@ -1,4 +1,5 @@
from textual.app import App, Screen, ComposeResult
from textual.app import App, ComposeResult
from textual.screen import Screen
from textual.widgets import Static

View File

@@ -24,7 +24,7 @@ Let's look at a simple example of writing a screen class to simulate Window's [b
=== "screen01.py"
```python title="screen01.py" hl_lines="17-23 28"
```python title="screen01.py" hl_lines="18-24 29"
--8<-- "docs/examples/guide/screens/screen01.py"
```
@@ -53,7 +53,7 @@ You can also _install_ new named screens dynamically with the [install_screen][t
=== "screen02.py"
```python title="screen02.py" hl_lines="30-31"
```python title="screen02.py" hl_lines="31-32"
--8<-- "docs/examples/guide/screens/screen02.py"
```