| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 
 | import tkinter as tk
 
fen = tk.Tk()
fen.geometry('500x200')
fen.columnconfigure(0, weight=1)
 
frame_resultat = tk.LabelFrame(fen, text="Résultat", padx=20, pady=15)
frame_resultat.grid(sticky=tk.NSEW, padx=15)
 
for i in range(4) :
    # 1 pour label, 0 pour button
    frame_resultat.columnconfigure(i, weight=1-i%2)
 
# Mail
label_mail = tk.Label(frame_resultat, height=1, text="Adresse mail")
label_mail.grid(row=0, column=0, columnspan=2, sticky=tk.W, padx=15)
 
info_mail = tk.Label(frame_resultat, height=1, relief=tk.SUNKEN, padx=5)
info_mail.grid(row=1, column=0, sticky=tk.EW)
 
bout_mail = tk.Button(frame_resultat, height=1, bg ="Red", padx=5, pady=0)
bout_mail.grid(row=1, column=1, padx=(5, 25))
 
# Agence
label_agence = tk.Label(frame_resultat, height=1, text="Agence")
label_agence.grid(row=0, column=2, columnspan=2, sticky=tk.W, padx=15)
 
info_agence = tk.Label(frame_resultat, height=1, relief=tk.SUNKEN, padx=5)
info_agence.grid(row=1, column=2, sticky=tk.EW)
 
bout_agence = tk.Button(frame_resultat, bg ="Red", padx=5, pady=0)
bout_agence.grid(row=1, column=3, padx=5)
 
fen.mainloop() |