Compare commits

..

3 Commits

Author SHA1 Message Date
1c5b5d8299 testing 2025-12-07 23:00:38 +01:00
b5be627097 added textual-dev as dependency and initiated main.py 2025-12-07 12:10:43 +01:00
51410b3321 Added init and main 2025-12-07 12:02:53 +01:00
5 changed files with 34 additions and 1 deletions

View File

@@ -1,3 +1,13 @@
# ytdlp-tui
A TUI wrapper for my yt-dlp commands
A TUI wrapper for my yt-dlp commands
This is a little tool to collect all my yt-dlp commands in one CLI app.
It aims to teach me how to write an TUI application in python.
## Libaries used
- pytest
- textual
- textual-dev (for command line development)

View File

@@ -0,0 +1,3 @@
pytest
textual
textual-dev

0
src/dl-tui/__init__.py Normal file
View File

20
src/dl-tui/ytdlp-tui.py Normal file
View File

@@ -0,0 +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)

0
src/dllib/__init__.py Normal file
View File