updated list view

This commit is contained in:
Will McGugan
2022-12-10 18:18:28 +00:00
parent be7f085ed9
commit 9aac3a0cca
3 changed files with 30 additions and 7 deletions

View File

@@ -3,6 +3,9 @@ from textual.widgets import ListView, ListItem, Label, Footer
class ListViewExample(App):
CSS_PATH = "list_view.css"
def compose(self) -> ComposeResult:
yield ListView(
ListItem(Label("One")),
@@ -12,6 +15,6 @@ class ListViewExample(App):
yield Footer()
app = ListViewExample(css_path="list_view.css")
if __name__ == "__main__":
app = ListViewExample()
app.run()