-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.py
67 lines (45 loc) · 1.3 KB
/
gui.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# from tkinter import *
# root=Tk()
# e=Entry(root, width=50)
# e.pack()
# def myClick():
# myLabel=Label(root,text='Choose a picture')
# myLabel.pack()
# myButton=Button(root, text='here', command=myClick)
# myButton.pack()
# root.mainloop()
# DIRECTORY SELECTION
from tkinter import filedialog
from tkinter import *
root = Tk()
root.withdraw()
folder_selected = filedialog.askopenfilename()
print(folder_selected)
mainloop()
#Choosing between arrival and departure
# from tkinter import *
# root = Tk()
# v = IntVar()
# def radioChoice(value):
# myLabel=Label(root, text=value)
# myLabel.pack()
# global val
# v.set(value)
# val=v.get()
# Radiobutton(root, text="Arrival", variable=v, value=1, command=lambda: radioChoice(v.get())).pack(anchor=W)
# Radiobutton(root, text="Departure", variable=v, value=0, command=lambda: radioChoice(v.get())).pack(anchor=W)
# myLabel=Label(root, text=v.get()).pack()
# OkButton=Button(root,text='submit',command=root.quit)
# OkButton.pack()
# mainloop()
# print('out',val)
#Image display
# from tkinter import *
# from PIL import ImageTk,Image
# root=Tk()
# myImg=ImageTk.PhotoImage(Image.open('licencePlate.png'))
# myImageLabel=Label(image=myImg)
# myImageLabel.pack()
# name='Cyril'
# myNameLabel=Label(root, text=name).pack()
# mainloop()