From d9a195b5bae64c1fe361ab1018bf7a47c77cdd97 Mon Sep 17 00:00:00 2001 From: Christophe C Date: Fri, 8 Mar 2024 19:55:22 +0100 Subject: [PATCH] =?UTF-8?q?essai=20de=20tailles=20des=20boutons=20"width"?= =?UTF-8?q?=20=20trop=20petite=20au=20d=C3=A9part=20pour=20avoir=20la=20m?= =?UTF-8?q?=C3=AAme=20taille=20partout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GestionDes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GestionDes.py b/GestionDes.py index 69a6d73..1a23ebc 100644 --- a/GestionDes.py +++ b/GestionDes.py @@ -19,8 +19,8 @@ cadreFormatDe.pack(side=tk.TOP, anchor=tk.CENTER, pady=10) DicoBoutons = {} # création d'un Dico pour distingués les boutons for i in [4, 6, 8, 10, 12, 20] : - button = tk.CTkButton(cadreFormatDe, text= f"D{i}", hover=False, width=3) # création d'un bouton - button.pack(side=tk.LEFT, padx=5, pady=5) #expand=True, fill=tk.X, anchor=tk.CENTER + button = tk.CTkButton(cadreFormatDe, text= f"D{i}", hover=False, width=50) # création d'un bouton + button.pack(side=tk.LEFT, padx=1, pady=1) #expand=True, fill=tk.X, anchor=tk.CENTER DicoBoutons[i] = button def clic4 ():