This commit is contained in:
Isaak Buslovich 2023-11-20 20:10:10 +01:00
parent b1e7877bf8
commit 891bf03aa3

View File

@ -9,12 +9,14 @@ class SimpleCLITool(App):
# First Tab with its content # First Tab with its content
first_tab = TabPane("First Tab") first_tab = TabPane("First Tab")
first_tab_content = TextArea("This is the content of the first tab. " * 10, auto_width=True) first_tab_content = TextArea()
first_tab_content.value = "This is the content of the first tab. " * 10
await first_tab.mount(first_tab_content) await first_tab.mount(first_tab_content)
# Second Tab with its content # Second Tab with its content
second_tab = TabPane("Second Tab") second_tab = TabPane("Second Tab")
second_tab_content = TextArea("This is the content of the second tab. " * 10, auto_width=True) second_tab_content = TextArea()
second_tab_content.value = "This is the content of the second tab. " * 10
await second_tab.mount(second_tab_content) await second_tab.mount(second_tab_content)
# Add tabs to TabbedContent # Add tabs to TabbedContent