Ja/Nein-Dialog: Button-Breiten weiter reduziert (8/8/10) und Fenster kompakter (480x190)
This commit is contained in:
22
gui.py
22
gui.py
@@ -652,25 +652,25 @@ class JaNeinAbbruchDialog(tk.Toplevel):
|
|||||||
|
|
||||||
self.title(title)
|
self.title(title)
|
||||||
|
|
||||||
self.geometry("500x200") # Kompakteres Fenster für bessere Lesbarkeit
|
self.geometry("480x190") # Kompakteres Fenster für bessere Lesbarkeit
|
||||||
self.minsize(480, 180) # Minimale Größe
|
self.minsize(450, 170) # Minimale Größe
|
||||||
tk.Label(self, text=self.message, font=('Helvetica', 13), wraplength=450).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) - kompaktere Größen für bessere Lesbarkeit
|
# 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=12, 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=10, 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=12)
|
nein_btn = create_macos_button(btn_frame, text="Nein", command=self.on_nein, width=8)
|
||||||
nein_btn.pack(side=tk.LEFT, padx=10, 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=14)
|
abbruch_btn = create_macos_button(btn_frame, text="Abbruch", command=self.on_abbruch, width=10)
|
||||||
abbruch_btn.pack(side=tk.LEFT, padx=10, 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