from tkinter import *
fen1 = Tk()
txt1 = Label(fen1, text ='Code postale de votre commune:')
txt2 = Label(fen1, text ='Voici:')
entr1 = Entry(fen1)
entr2 = Entry(fen1)
can1 = Canvas(fen1, width =160, height =160, bg ='white')
photo = PhotoImage(file ='popo.gif')
item = can1.create_image(80, 80, image =photo)
txt1.grid(row =1, sticky =E)
txt2.grid(row =2, sticky =E)
entr1.grid(row =1, column =2)
entr2.grid(row =2, column =2)
can1.grid(row =1, column =3, rowspan =3, padx =10, pady =5)
fen1.mainloop()
Partager