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
| from Tkinter import *
fen1=Tk()
fen1.title("Recentrage des donnees")
# Création des canevas
can1 = Canvas(fen1,width =150, height=500, bg='green')
can1.grid(row=1, column=1, padx=10, pady=10, rowspan=2)
can1.grid_propagate(0)
can2 = Canvas(fen1,width =350, height =300, bg='blue')
can2.grid(row=1,column=2,padx=10, pady=10)
can2.grid_propagate(0)
can3 = Canvas(fen1,width =350, height =200, bg='black')
can3.grid(row=2,column=2,padx=10, pady=10)
# Les boutons et leur positionnement
bou1 = Button(can1, text='Config' , width = 15, bd=4, command=())
bou1.grid(sticky=N)
bou21 = Button(can2, text='Config' , width = 15, bd=4, command=())
bou21.grid(row=0, column=1, sticky=NW)
bou22 = Button(can2, text='Config' , width = 15, bd=4, command=())
bou22.grid(row=1, column=1)
bou23 = Button(can2, text='Config' , width = 15, bd=4, command=())
bou23.grid(row=2, column=1)
fen1.mainloop() |
Partager