From 891bf03aa3d480b184461d4a476acacf4d51685c Mon Sep 17 00:00:00 2001 From: Isaak Buslovich Date: Mon, 20 Nov 2023 20:10:10 +0100 Subject: [PATCH] Fix --- text.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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