1 2 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
|
fenetre = Tk()
niveau = Frame(fenetre,borderwidth=5,relief=FLAT,bg='Brown')
niveau.pack(padx=0,pady=10)
for i in range(0,10):
#-------------------------------------------------------------------------
tache = Frame(niveau,borderwidth=10,relief=FLAT,bg='yellow')
tache.pack(padx=0,pady=10)
nom = Frame(tache,borderwidth=5,relief=GROOVE,bg='red')
nom.pack(side="bottom",padx=10)
tot = Frame(tache,borderwidth=5,relief=GROOVE,bg='black')
tot.pack(side="left")
tard = Frame(tache,borderwidth=5,relief=GROOVE,bg='violet')
tard.pack(side="right")
Label(nom,text="aaaaaa",bg='green').pack(padx=20,pady=10)
Label(tot,text="tooooooooot",bg='pink').pack(padx=5,pady=5)
Label(tard,text="taaaard",bg='white').pack(padx=5,pady=5)
fenetre.mainloop() |
Partager