Compare commits
2 Commits
ccc764f198
...
bc67232628
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc67232628 | ||
|
|
acaaba7758 |
22
gui.py
22
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("480x190") # Kompakteres Fenster für bessere Lesbarkeit
|
||||||
self.minsize(550, 200) # Minimale Größe
|
self.minsize(450, 170) # 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=420).pack(pady=20)
|
||||||
|
|
||||||
btn_frame = tk.Frame(self)
|
btn_frame = tk.Frame(self)
|
||||||
btn_frame.pack(pady=15)
|
btn_frame.pack(pady=12)
|
||||||
|
|
||||||
# Buttons (macOS-Style) - angepasste Größen für bessere Proportionen
|
# Buttons (macOS-Style) - minimale Breiten 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=8, default=True)
|
||||||
ja_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
ja_btn.pack(side=tk.LEFT, padx=8, pady=5)
|
||||||
|
|
||||||
# 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=8)
|
||||||
nein_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
nein_btn.pack(side=tk.LEFT, padx=8, pady=5)
|
||||||
|
|
||||||
# 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=10)
|
||||||
abbruch_btn.pack(side=tk.LEFT, padx=12, pady=6)
|
abbruch_btn.pack(side=tk.LEFT, padx=8, pady=5)
|
||||||
|
|
||||||
self.center_window()
|
self.center_window()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user