From cb782891f9a231c6a5c3de0b90ec6378c1fcf2fc Mon Sep 17 00:00:00 2001 From: Hannes Weichelt Date: Wed, 5 Jun 2024 20:52:13 +0200 Subject: [PATCH] updated to newest textual version + footer --- pyproject.toml | 2 +- src/clingexplaid/cli/textual_gui.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 743617b..d3553ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ readme = "README.md" dependencies = [ "clingo>=5.7.1", "autoflake", - "textual==0.62.0", + "textual==0.65.1", ] classifiers = [ "Development Status :: 4 - Beta", diff --git a/src/clingexplaid/cli/textual_gui.py b/src/clingexplaid/cli/textual_gui.py index f301655..37e7cf0 100644 --- a/src/clingexplaid/cli/textual_gui.py +++ b/src/clingexplaid/cli/textual_gui.py @@ -351,9 +351,6 @@ class ClingexplaidTextualApp(App): # pylint: disable=too-many-instance-attributes - BINDINGS = [ - ("ctrl+x", "exit", "Exit"), - ] CSS = MAIN_CSS def __init__(self, files: List[str], constants: Dict[str, str]) -> None: @@ -368,6 +365,8 @@ def __init__(self, files: List[str], constants: Dict[str, str]) -> None: self._loaded_files: Set[str] = set() self._loaded_signatures: Set[Tuple[str, int]] = set() + self.bind("ctrl+x", "exit", description="Exit", key_display="CTRL+X") + def compose(self) -> ComposeResult: """ Composes the `ClingexplaidTextualApp`'s components