From 1c5b5d8299dcb6c86743b6a6e2f5c2dc8c7634e1 Mon Sep 17 00:00:00 2001 From: cerberus Date: Sun, 7 Dec 2025 23:00:38 +0100 Subject: [PATCH] testing --- src/dl-tui/ytdlp-tui.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/dl-tui/ytdlp-tui.py b/src/dl-tui/ytdlp-tui.py index 04250ee..309061a 100644 --- a/src/dl-tui/ytdlp-tui.py +++ b/src/dl-tui/ytdlp-tui.py @@ -1,2 +1,20 @@ # from dllib.logger import logger +from textual.app import App, ComposeResult +from textual.widgets import Label, Button + + +class QuestionApp(App[str]): + def compose(self) -> ComposeResult: + yield Label("Do you love Textual?") + yield Button("Yes", id="yes", variant="primary") + yield Button("No", id="no", variant="error") + + def on_button_pressed(self, event: Button.Pressed) -> None: + self.exit(event.button.id) + + +if __name__ == "__main__": + app = QuestionApp() + reply = app.run() + print(reply)