From 77ae398761a6ba25bb85c46f45088b933f48f507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A9sir=C3=A9=20Werner=20Menrath?= Date: Sat, 2 Aug 2025 22:38:38 +0200 Subject: [PATCH] commit 41 --- __pycache__/cfd_ui_setup.cpython-312.pyc | Bin 27478 -> 27478 bytes cfd_ui_setup.py | 14 +++++++------- mainwindow.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/__pycache__/cfd_ui_setup.cpython-312.pyc b/__pycache__/cfd_ui_setup.cpython-312.pyc index ddc02ffd55b580371214b9c76a2ab787139250a5..ca9e9c735329803951f8f01ccbff44908806d7fa 100644 GIT binary patch delta 771 zcmZ{gT}V@57{||ZX3lg=L5Jp=`!G@)3hpXm^9v1i>2|U?3elFw+QJr{*`kP0h-wi< zJ+8LWDPBoCka1#2bWxU3Nn}yWMrgNs5nZe(Na%f?BfRLn_@9UW^Lswd6OThY4$3*D zGMgdK-3E8a$Xjb0w&HDWlLfsyTHsIRF4>T2@k{ANBR-i^vq zJTTtJ*k#u0wfqRbg&!3o(Tr4v>|js#Bs+|+?@%n)^BUeLj^Vsng>QEhpr$s}`#%%q z>l3AKwXa!rd8_oOVG|33_@vPYLuhF;VM&t-E=gR|3Y$4fCJGU(Z}t!(+FZO&{AxZ9 zVLZ~(2r-PdRBaok7*e6ltG|L3g3^zcPJj^Zwdx@xd94#r`IM3~L@H#$ zERDOVyr6QCh>u=fHz<@)V@R^J4S||s3B?(|r|)!+uU9zH-%n~^QQ(90x&0^GCY1Msz{R@Nx=G*`P delta 785 zcmbV|Ur1A77{K>g}c3*9>^4erV`|j7Q9? zRQ^qG{7}$S3n5(a`gpwfiM>x46{776)kOSa<;+v=%~C{n+}$RBpD8J4PLg2HPY*RrI#BX-xpL7p`e; xnBqFaEmP3+UY9km%bG}?EPR~0m}j4CpE|uNaC*xc2m0bQ9nN=sRoA=Q_+JKN=K}x$ diff --git a/cfd_ui_setup.py b/cfd_ui_setup.py index 198fffd..7f062ea 100644 --- a/cfd_ui_setup.py +++ b/cfd_ui_setup.py @@ -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", diff --git a/mainwindow.py b/mainwindow.py index 19db77e..4d2f12b 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -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)