Skip to content

Commit

Permalink
fix: add a banner to TableApp for enhanced user interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlaloc-Es committed Jan 2, 2025
1 parent 5b02197 commit 415a0b8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion killpy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from textual.app import App, ComposeResult
from textual.binding import Binding
from textual.coordinate import Coordinate
from textual.widgets import DataTable, Footer, Header, Label
from textual.widgets import DataTable, Footer, Header, Label, Static


def get_total_size(path: Path) -> int:
Expand Down Expand Up @@ -51,8 +51,26 @@ class TableApp(App):
),
]

CSS = """
#banner {
color: white;
border: heavy green;
}
"""

def compose(self) -> ComposeResult:
yield Header()
banner = Static(
"""
▗▖ ▗▖▄ █ █ ▗▄▄▖ ▄ ▄ ____
▐▌▗▞▘▄ █ █ ▐▌ ▐▌█ █ .'`_ o `;__,
▐▛▚▖ █ █ █ ▐▛▀▘ ▀▀▀█ . .'.'` '---' '
▐▌ ▐▌█ █ █ ▐▌ ▄ █ .`-...-'.'
▀▀▀ `-...-' A tool to delete .venv directories
""",
id="banner",
)
yield banner
yield Label("Finding .venv directories...")
yield DataTable()
yield Footer()
Expand Down

0 comments on commit 415a0b8

Please sign in to comment.