mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
updated list view
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user