essai de tailles des boutons "width" trop petite au départ pour avoir la même taille partout

This commit is contained in:
Christophe C 2024-03-08 19:55:22 +01:00
parent 9fdc37fffd
commit d9a195b5ba

View File

@ -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 DicoBoutons = {} # création d'un Dico pour distingués les boutons
for i in [4, 6, 8, 10, 12, 20] : 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 = tk.CTkButton(cadreFormatDe, text= f"D{i}", hover=False, width=50) # création d'un bouton
button.pack(side=tk.LEFT, padx=5, pady=5) #expand=True, fill=tk.X, anchor=tk.CENTER button.pack(side=tk.LEFT, padx=1, pady=1) #expand=True, fill=tk.X, anchor=tk.CENTER
DicoBoutons[i] = button DicoBoutons[i] = button
def clic4 (): def clic4 ():