1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| from Tkinter import *
class updateur:
def __init__(self) :
self.fen1 = Tk()
self.txt1 = Label(self.fen1, text ='premier champ :')
self.txt2 = Label(self.fen1, text ='second champ :')
self.txt3 = Label(self.fen1, text ='troisième champ :')
self.entr1 = Entry(self.fen1)
self.entr2 = Entry (self.fen1)
self.entr3 = Entry (self.fen1)
self.can1 =Canvas(self.fen1, width = 160, height= 160, bg ='white')
self.photo = PhotoImage(file ='Slade.gif')
self.item = self.can1.create_image(80,80, image = self.photo)
self.txt1.grid(row =1,sticky =E)
self.txt2.grid(row =2,sticky =E)
self.txt3.grid(row =3,sticky =E)
self.entr1.grid(row =1,column = 2)
self.entr2.grid(row =2,column = 2)
self.entr3.grid(row =3,column = 2)
self.can1.grid(row=1,column=3, rowspan=3, padx=10, pady = 5)
updateur() |
Partager