From 7002b4437e88cf413f7b8e0d595a53c86ef8c60b Mon Sep 17 00:00:00 2001 From: Yandrik Date: Wed, 19 Mar 2025 23:27:06 +0100 Subject: [PATCH] feat: add scrolling to main window --- main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index dcb4ebd..3a9e23f 100644 --- a/main.py +++ b/main.py @@ -159,7 +159,9 @@ class FlashcardCreator: # Create a scrollable column for the main content main_content = ft.Column( [ - ft.Row([self.source_dropdown, self.target_dropdown, self.settings_button]), + ft.Row( + [self.source_dropdown, self.target_dropdown, self.settings_button] + ), ft.Divider(), ft.Text("Input Text", size=16, weight=ft.FontWeight.BOLD), self.input_text, @@ -219,7 +221,7 @@ class FlashcardCreator: f, ) - e.close(dialog) + e.page.close(dialog) e.page.update() # Load settings if they exist