Fix bottom menu buttons visibility by adjusting packing order
This commit is contained in:
@@ -109,13 +109,13 @@ class App:
|
||||
style.map("TNotebook.Tab", background=[("selected", active_bg_color)], foreground=[("selected", fg_color)])
|
||||
style.configure("TFrame", background=bg_color)
|
||||
|
||||
# Tab management buttons frame (packed at bottom so it stays visible)
|
||||
# Tab management buttons frame (packed at bottom first to ensure it's always visible)
|
||||
tab_management_frame = tk.Frame(self.root, bg=bg_color)
|
||||
tab_management_frame.pack(side=tk.BOTTOM, fill=tk.X, padx=self.scale_size(10), pady=self.scale_size(5))
|
||||
|
||||
# Create Notebook for tabs (packed before buttons so it takes remaining space)
|
||||
|
||||
# Create Notebook for tabs (packed after buttons, takes remaining space)
|
||||
self.notebook = ttk.Notebook(self.root)
|
||||
self.notebook.pack(expand=True, fill="both", before=tab_management_frame)
|
||||
self.notebook.pack(expand=True, fill="both")
|
||||
|
||||
add_tab_btn = tk.Button(
|
||||
tab_management_frame,
|
||||
|
||||
Reference in New Issue
Block a user