We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9274290 commit b3a20c8Copy full SHA for b3a20c8
docs/snippets/gallery/textual.py
@@ -1,6 +1,6 @@
1
from textual.app import App, ComposeResult
2
-from textual.pilot import Pilot
3
from textual.widgets import Static
+from textual._doc import take_svg_screenshot
4
5
6
class TextApp(App):
@@ -24,8 +24,4 @@ def compose(self) -> ComposeResult:
24
yield Static("[b]World![/b]")
25
26
27
-async def auto_pilot(pilot: Pilot):
28
- pilot.app.exit(pilot.app.export_screenshot())
29
-
30
31
-print(TextApp().run(headless=True, size=(80, 24), auto_pilot=auto_pilot))
+print(take_svg_screenshot(app=TextApp(), terminal_size=(80, 24)))
0 commit comments