Fix
This commit is contained in:
parent
b1e7877bf8
commit
891bf03aa3
6
text.py
6
text.py
@ -9,12 +9,14 @@ class SimpleCLITool(App):
|
||||
|
||||
# First Tab with its content
|
||||
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)
|
||||
|
||||
# Second Tab with its content
|
||||
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)
|
||||
|
||||
# Add tabs to TabbedContent
|
||||
|
||||
Loading…
Reference in New Issue
Block a user