Compare commits
2 Commits
ccf6717e92
...
ccc764f198
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ccc764f198 | ||
|
|
aa12d099ae |
38
gui.py
38
gui.py
@@ -143,13 +143,13 @@ 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) - wird versteckt, da nicht benötigt
|
||||
# Durchsuchen Button (macOS-Style) - primärer Standard-Button (blau)
|
||||
self.browse_button = create_macos_button(self.button_frame, text="Durchsuchen", command=self.browse, width=14, default=True)
|
||||
self.browse_button.pack_forget() # Button versteckt
|
||||
self.browse_button.pack(side=tk.LEFT, 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)
|
||||
# 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)
|
||||
|
||||
# Hinweis-Label mit angepasster Schriftgröße (wie Buttons: 13pt)
|
||||
self.hint_label = tk.Label(self.root, text="Bitte wählen Sie den Ordner mit den Bilddaten aus!", font=('Helvetica', 13))
|
||||
@@ -347,13 +347,11 @@ class GUI:
|
||||
messagebox.showerror("Fehler", message)
|
||||
def disable_browse_button(self):
|
||||
"""Deaktiviert den Durchsuchen Button."""
|
||||
# Button ist versteckt, daher keine Aktion nötig
|
||||
pass
|
||||
self.browse_button.config(state=tk.DISABLED)
|
||||
|
||||
def enable_browse_button(self):
|
||||
"""Aktiviert den Durchsuchen Button."""
|
||||
# Button ist versteckt, daher keine Aktion nötig
|
||||
pass
|
||||
self.browse_button.config(state=tk.NORMAL)
|
||||
def bind_shortcuts(self):
|
||||
self.root.bind('<Command-comma>', lambda event: self.open_settings_dialog())
|
||||
def open_settings_dialog(self):
|
||||
@@ -654,25 +652,25 @@ class JaNeinAbbruchDialog(tk.Toplevel):
|
||||
|
||||
self.title(title)
|
||||
|
||||
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)
|
||||
self.geometry("600x220") # Größeres Fenster für passende Button-Größen
|
||||
self.minsize(550, 200) # Minimale Größe
|
||||
tk.Label(self, text=self.message, font=('Helvetica', 13), wraplength=550).pack(pady=25)
|
||||
|
||||
btn_frame = tk.Frame(self)
|
||||
btn_frame.pack(pady=12)
|
||||
btn_frame.pack(pady=15)
|
||||
|
||||
# Buttons (macOS-Style)
|
||||
# Buttons (macOS-Style) - angepasste Größen für bessere Proportionen
|
||||
# Primärer Button (blau) - Ja ist die primäre Aktion
|
||||
ja_btn = create_macos_button(btn_frame, text="Ja", command=self.on_ja, width=16, default=True)
|
||||
ja_btn.pack(side=tk.LEFT, padx=10, pady=6)
|
||||
ja_btn = create_macos_button(btn_frame, text="Ja", command=self.on_ja, width=18, default=True)
|
||||
ja_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
||||
|
||||
# Sekundärer Button (grau)
|
||||
nein_btn = create_macos_button(btn_frame, text="Nein", command=self.on_nein, width=16)
|
||||
nein_btn.pack(side=tk.LEFT, padx=10, pady=6)
|
||||
nein_btn = create_macos_button(btn_frame, text="Nein", command=self.on_nein, width=18)
|
||||
nein_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
||||
|
||||
# Sekundärer Button (grau)
|
||||
abbruch_btn = create_macos_button(btn_frame, text="Abbruch", command=self.on_abbruch, width=16)
|
||||
abbruch_btn.pack(side=tk.LEFT, padx=10, pady=6)
|
||||
abbruch_btn = create_macos_button(btn_frame, text="Abbruch", command=self.on_abbruch, width=18)
|
||||
abbruch_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
||||
|
||||
self.center_window()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user