Hauptfenster: Durchsuchen-Button entfernt, Abbruch zentriert | Ja/Nein-Dialog: Fenster vergrößert (550x200)
This commit is contained in:
22
gui.py
22
gui.py
@@ -143,13 +143,14 @@ class GUI:
|
||||
self.button_frame = tk.Frame(self.root)
|
||||
self.button_frame.pack(side=tk.BOTTOM, fill=tk.X, pady=12)
|
||||
|
||||
# Durchsuchen Button (macOS-Style) - primärer Button (blau)
|
||||
# Durchsuchen Button (macOS-Style) - wird versteckt, wenn nicht benötigt
|
||||
self.browse_button = create_macos_button(self.button_frame, text="Durchsuchen", command=self.browse, width=14, default=True)
|
||||
self.browse_button.pack(side=tk.LEFT, padx=12, expand=True, pady=4)
|
||||
# Button wird standardmäßig versteckt - wird nur angezeigt, wenn explizit benötigt
|
||||
self.browse_button.pack_forget()
|
||||
|
||||
# Schließen Button (macOS-Style) - sekundärer Button (grau)
|
||||
self.close_button = create_macos_button(self.button_frame, text="Abbruch", command=self.on_app_close, width=14)
|
||||
self.close_button.pack(side=tk.RIGHT, padx=12, expand=True, pady=4)
|
||||
# Schließen Button (macOS-Style) - zentriert
|
||||
self.close_button = create_macos_button(self.button_frame, text="Abbruch", command=self.on_app_close, width=16)
|
||||
self.close_button.pack(expand=True, pady=4)
|
||||
|
||||
self.hint_label = tk.Label(self.root, text="Bitte wählen Sie den Ordner mit den Bilddaten aus!")
|
||||
self.hint_label.pack(pady=5) # Pady hinzugefügt für etwas Abstand nach oben und unten
|
||||
@@ -346,11 +347,13 @@ class GUI:
|
||||
messagebox.showerror("Fehler", message)
|
||||
def disable_browse_button(self):
|
||||
"""Deaktiviert den Durchsuchen Button."""
|
||||
self.browse_button.config(state=tk.DISABLED)
|
||||
# Button ist versteckt, daher keine Aktion nötig
|
||||
pass
|
||||
|
||||
def enable_browse_button(self):
|
||||
"""Aktiviert den Durchsuchen Button."""
|
||||
self.browse_button.config(state=tk.NORMAL)
|
||||
# Button ist versteckt, daher keine Aktion nötig
|
||||
pass
|
||||
def bind_shortcuts(self):
|
||||
self.root.bind('<Command-comma>', lambda event: self.open_settings_dialog())
|
||||
def open_settings_dialog(self):
|
||||
@@ -651,8 +654,9 @@ class JaNeinAbbruchDialog(tk.Toplevel):
|
||||
|
||||
self.title(title)
|
||||
|
||||
self.geometry("420x180") # Angepasste Fenstergröße
|
||||
tk.Label(self, text=self.message, font=('Helvetica', 13)).pack(pady=20)
|
||||
self.geometry("550x200") # Größeres Fenster für vollständige Textanzeige
|
||||
self.minsize(500, 180) # Minimale Größe
|
||||
tk.Label(self, text=self.message, font=('Helvetica', 13), wraplength=500).pack(pady=25)
|
||||
|
||||
btn_frame = tk.Frame(self)
|
||||
btn_frame.pack(pady=12)
|
||||
|
||||
Reference in New Issue
Block a user