commit 41
This commit is contained in:
Binary file not shown.
@@ -130,7 +130,7 @@ class WidgetManager:
|
||||
|
||||
self.forward_button = ttk.Button(nav_buttons_container, image=self.dialog.icon_manager.get_icon(
|
||||
'forward'), command=self.dialog.go_forward, state=tk.DISABLED, style="Header.TButton.Borderless.Round")
|
||||
self.forward_button.pack(side="left", padx=(0, 20))
|
||||
self.forward_button.pack(side="left", padx=(0, 25))
|
||||
Tooltip(self.forward_button, "Vorwärts")
|
||||
|
||||
self.home_button = ttk.Button(nav_buttons_container, image=self.dialog.icon_manager.get_icon(
|
||||
@@ -360,12 +360,6 @@ class WidgetManager:
|
||||
bottom_controls_frame.grid(row=1, column=0, sticky="ew", pady=(5, 0))
|
||||
bottom_controls_frame.grid_columnconfigure(1, weight=1)
|
||||
|
||||
# Status bar (top-left in the bottom area)
|
||||
self.status_bar = ttk.Label(
|
||||
bottom_controls_frame, text="", anchor="w", style="AccentBottom.TLabel")
|
||||
self.status_bar.grid(row=0, column=1, columnspan=2,
|
||||
sticky="w", padx=10, pady=5)
|
||||
|
||||
# Main action buttons (bottom-left)
|
||||
left_bottom_buttons = ttk.Frame(
|
||||
bottom_controls_frame, style="AccentBottom.TFrame")
|
||||
@@ -382,6 +376,12 @@ class WidgetManager:
|
||||
ttk.Button(left_bottom_buttons, text="Abbrechen",
|
||||
command=self.dialog.on_cancel).grid(row=1, column=0, padx=(10, 5))
|
||||
else:
|
||||
|
||||
# Status bar (top-left in the bottom area)
|
||||
self.status_bar = ttk.Label(
|
||||
left_bottom_buttons, text="", anchor="w", style="AccentBottom.TLabel")
|
||||
self.status_bar.grid(row=0, column=1, columnspan=2,
|
||||
sticky="e", padx=10, pady=5)
|
||||
ttk.Button(left_bottom_buttons, text="Öffnen", command=self.dialog.on_open).grid(
|
||||
row=0, column=0, padx=(10, 5), pady=10)
|
||||
ttk.Button(left_bottom_buttons, text="Abbrechen",
|
||||
|
@@ -33,7 +33,7 @@ class GlotzMol(tk.Tk):
|
||||
CustomFileDialog(self,
|
||||
initial_dir=os.path.expanduser("~"),
|
||||
filetypes=[("All Files", "*.*")
|
||||
])
|
||||
], dialog_mode="save")
|
||||
|
||||
# This is the crucial part: wait for the dialog to be closed
|
||||
# self.wait_window(dialog)
|
||||
|
Reference in New Issue
Block a user