From 20d423497b6d809701c152c96b13fd319a76e334 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 11 Feb 2024 01:34:33 +0100 Subject: [PATCH] widgets spacing from top --- src/gui_main.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gui_main.py b/src/gui_main.py index 79ada7a..450a95c 100644 --- a/src/gui_main.py +++ b/src/gui_main.py @@ -53,15 +53,16 @@ def run_installer(download_folder_tmp, col_isDark): widget_specs = tabs.get(current_tab, []) widgets = [] - spacing_top = 10 # Adjust the spacing as needed + spacing = 15 + spacing_top = 130 for index, spec in enumerate(widget_specs): widget = create_widget(spec, container) if widget: - if index == 0: # Add spacing from the top only for the first widget - widget.pack(pady=spacing_top, padx=20) + if index == 0: # Apply spacing only to the top of the first widget + widget.pack(pady=(spacing_top, spacing), padx=20) else: - widget.pack(pady=spacing_top, padx=20) + widget.pack(pady=spacing, padx=20) # No spacing for other widgets widgets.append(widget) return widgets @@ -102,6 +103,7 @@ def run_installer(download_folder_tmp, col_isDark): else: return spec(master=master) + # Function to switch to a specified tab def switch_to_tab(tabname): global visible_widgets