Skip to content

Commit 415a0b8

Browse files
committed
fix: add a banner to TableApp for enhanced user interface
1 parent 5b02197 commit 415a0b8

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

killpy/__main__.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from textual.app import App, ComposeResult
66
from textual.binding import Binding
77
from textual.coordinate import Coordinate
8-
from textual.widgets import DataTable, Footer, Header, Label
8+
from textual.widgets import DataTable, Footer, Header, Label, Static
99

1010

1111
def get_total_size(path: Path) -> int:
@@ -51,8 +51,26 @@ class TableApp(App):
5151
),
5252
]
5353

54+
CSS = """
55+
#banner {
56+
color: white;
57+
border: heavy green;
58+
}
59+
"""
60+
5461
def compose(self) -> ComposeResult:
5562
yield Header()
63+
banner = Static(
64+
"""
65+
▗▖ ▗▖▄ █ █ ▗▄▄▖ ▄ ▄ ____
66+
▐▌▗▞▘▄ █ █ ▐▌ ▐▌█ █ .'`_ o `;__,
67+
▐▛▚▖ █ █ █ ▐▛▀▘ ▀▀▀█ . .'.'` '---' '
68+
▐▌ ▐▌█ █ █ ▐▌ ▄ █ .`-...-'.'
69+
▀▀▀ `-...-' A tool to delete .venv directories
70+
""",
71+
id="banner",
72+
)
73+
yield banner
5674
yield Label("Finding .venv directories...")
5775
yield DataTable()
5876
yield Footer()

0 commit comments

Comments
 (0)