Animating tab change, set initial tab

This commit is contained in:
Darren Burns
2022-02-16 13:40:40 +00:00
parent 16085b9905
commit 549897f9dd
4 changed files with 80 additions and 31 deletions

View File

@@ -48,8 +48,8 @@ class BasicApp(App):
Tab("Seven", name="seven"),
Tab("Eight", name="eight"),
],
active_tab="three",
)
self.tabs.active_tab_name = "one"
"""Build layout here."""
self.mount(
header=self.tabs,