Ja/Nein-Dialog: Button-Breiten reduziert (12/12/14) und Fenster kompakter (500x200) für bessere Lesbarkeit
This commit is contained in:
20
gui.py
20
gui.py
@@ -652,25 +652,25 @@ class JaNeinAbbruchDialog(tk.Toplevel):
|
|||||||
|
|
||||||
self.title(title)
|
self.title(title)
|
||||||
|
|
||||||
self.geometry("600x220") # Größeres Fenster für passende Button-Größen
|
self.geometry("500x200") # Kompakteres Fenster für bessere Lesbarkeit
|
||||||
self.minsize(550, 200) # Minimale Größe
|
self.minsize(480, 180) # Minimale Größe
|
||||||
tk.Label(self, text=self.message, font=('Helvetica', 13), wraplength=550).pack(pady=25)
|
tk.Label(self, text=self.message, font=('Helvetica', 13), wraplength=450).pack(pady=25)
|
||||||
|
|
||||||
btn_frame = tk.Frame(self)
|
btn_frame = tk.Frame(self)
|
||||||
btn_frame.pack(pady=15)
|
btn_frame.pack(pady=15)
|
||||||
|
|
||||||
# Buttons (macOS-Style) - angepasste Größen für bessere Proportionen
|
# Buttons (macOS-Style) - kompaktere Größen für bessere Lesbarkeit
|
||||||
# Primärer Button (blau) - Ja ist die primäre Aktion
|
# Primärer Button (blau) - Ja ist die primäre Aktion
|
||||||
ja_btn = create_macos_button(btn_frame, text="Ja", command=self.on_ja, width=18, default=True)
|
ja_btn = create_macos_button(btn_frame, text="Ja", command=self.on_ja, width=12, default=True)
|
||||||
ja_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
ja_btn.pack(side=tk.LEFT, padx=10, pady=6)
|
||||||
|
|
||||||
# Sekundärer Button (grau)
|
# Sekundärer Button (grau)
|
||||||
nein_btn = create_macos_button(btn_frame, text="Nein", command=self.on_nein, width=18)
|
nein_btn = create_macos_button(btn_frame, text="Nein", command=self.on_nein, width=12)
|
||||||
nein_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
nein_btn.pack(side=tk.LEFT, padx=10, pady=6)
|
||||||
|
|
||||||
# Sekundärer Button (grau)
|
# Sekundärer Button (grau)
|
||||||
abbruch_btn = create_macos_button(btn_frame, text="Abbruch", command=self.on_abbruch, width=18)
|
abbruch_btn = create_macos_button(btn_frame, text="Abbruch", command=self.on_abbruch, width=14)
|
||||||
abbruch_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
abbruch_btn.pack(side=tk.LEFT, padx=10, pady=6)
|
||||||
|
|
||||||
self.center_window()
|
self.center_window()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user