-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgui.py
More file actions
53 lines (31 loc) · 916 Bytes
/
Copy pathgui.py
File metadata and controls
53 lines (31 loc) · 916 Bytes
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
import tkinter
from tkinter import *
d=''
s=''
def onclick():
global d
global s
d=str(e2.get())
s=str(e1.get())
window.destroy()
window = tkinter.Tk()
window.configure(background="#a1dbcd")
window.title("AmazonWebCrawler")
photo = tkinter.PhotoImage(file="a2.ppm")
w = tkinter.Label(window, image=photo)
w.pack()
lblInst = tkinter.Label(window, text="Please Fill to continue:", fg="#383a39", bg="#a1dbcd", font=("Helvetica", 16))
lblInst.pack()
l1 = tkinter.Label(window, text="Search_Here:", fg="#383a39", bg="#a1dbcd")
e1 = tkinter.Entry(window)
l1.pack()
e1.pack()
l2 = tkinter.Label(window, text="File_Location:", fg="#383a39", bg="#a1dbcd")
v=StringVar()
v.set('/home/anany/Downloads/')
e2 = tkinter.Entry(window,textvariable=v)
l2.pack()
e2.pack()
btn = tkinter.Button(window, text="Start", fg="#a1dbcd", bg="#383a39",command=onclick)
btn.pack()
window.mainloop()