1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| from Tkinter import *
def j3():
can1.delete(ALL)
can2=Canvas(accueil, width = 1000, height = 750, bg = 'dark grey')
photo = PhotoImage(file ='plateau.gif')
item = can2.create_image(500,375, image = photo)
can2.pack(side = TOP)
# programme principal
accueil = Tk()
#création widget fenêtre d'accueil
can1=Canvas(accueil, width = 1275, height = 864)
photo = PhotoImage(file ='tarot.gif')
item = can1.create_image(635,430, image = photo)
can1.pack(side = TOP)
b1 = Button(accueil, text = '3 joueurs', command = j3, padx = 40, pady = 20).pack(side = LEFT)
b2 = Button(accueil, text = 'Quitter', command = accueil.quit, padx = 40, pady = 20).pack(side = RIGHT)
accueil.mainloop()
accueil.destroy() |
Partager