diff --git a/text.py b/text.py index 8483c46..51e9fa8 100644 --- a/text.py +++ b/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