Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fen =Tk()
- fen.title('Sélection des mini-jeux')
- def lol():
- fen.destroy()
- dessin=Canvas(fen, bg="white", width=301, height=301)
- dessin.grid(row = 1, column = 0, columnspan = 2, padx=5, pady=5)
- SpaceInvimage=PhotoImage(file='invader.gif')
- morpionimage=PhotoImage(file='morpion.gif' )
- dessin=Canvas(fen, bg="white", width=301, height=501)
- dessin.grid(row = 0, column = 0, columnspan = 2, padx=5, pady=5)
- bouton_minijeux = Button(fen, image=morpionimage, command=lol)
- bouton_minijeux.grid(row = 0, column = 0, padx=20, pady = 50, sticky=N+W)
- bouton_minijeux = Button(fen, image=SpaceInvimage, command=fen.destroy)
- bouton_minijeux.grid(row = 0, column = 1, padx=20, pady = 50, sticky=N+E)
- message = Label(fen, text='Sélection de mini-jeux')
- message.grid(row=0, column=0 , padx=3 , columnspan=2, pady=3, sticky=N )
- fen.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement