-
Notifications
You must be signed in to change notification settings - Fork 0
/
images.py
29 lines (26 loc) · 844 Bytes
/
images.py
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
from sense_hat import SenseHat
from camera import*
from tkinter import*
def Visionneur():
fen = Tk()
can = Canvas(fen,bg='dark grey',height=200,width=200)
photo = PhotoImage(file ='image.png')
item = can.create_image(80, 80, image =photo)
bou1 = Button(fen, text='Quitter', command = fen.destroy)
bou5 = Button(fen, text='Appareil', command = Appareil)
can.pack()
bou1.pack(side=BOTTOM)
bou5.pack(side=BOTTOM)
fen.mainloop()
def Appareil():
fen1 = Tk()
bou2 = Button(fen1, text= "Photo", command = photo)
bou3 = Button(fen1, text='Filmer', command = film)
bou4 = Button(fen1, text='Voir les photos', command = Visionneur)
bou = Button(fen1, text='Quitter', command = fen1.destroy)
bou2.pack()
bou3.pack()
bou4.pack()
bou.pack()
fen1.mainloop()
Appareil()