mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
posssible speedup of screenshots
This commit is contained in:
@@ -47,7 +47,7 @@ def format_svg(source, language, css_class, options, md, attrs, **kwargs) -> str
|
||||
def take_svg_screenshot(
|
||||
app: App | None = None,
|
||||
app_path: str | None = None,
|
||||
press: Iterable[str] = ("_",),
|
||||
press: Iterable[str] = (),
|
||||
title: str | None = None,
|
||||
terminal_size: tuple[int, int] = (80, 24),
|
||||
) -> str:
|
||||
|
||||
@@ -35,7 +35,8 @@ class Pilot:
|
||||
*key: Keys to press.
|
||||
|
||||
"""
|
||||
await self._app._press_keys(keys)
|
||||
if keys:
|
||||
await self._app._press_keys(keys)
|
||||
|
||||
async def pause(self, delay: float = 50 / 1000) -> None:
|
||||
"""Insert a pause.
|
||||
|
||||
Reference in New Issue
Block a user