mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user