-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUserUI.py
66 lines (47 loc) · 1.47 KB
/
UserUI.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
from tkinter import *
from UploadProduct import Upload
#Window:
mainwindow = Tk()
mainwindow.title('Ebaybot')
mainwindow.geometry('800x600')
#Creating Entrys:
usernameEntry = Entry(mainwindow, width=20)
pwEntry = Entry(mainwindow, width=20)
sellprodEntry = Entry(mainwindow, width=20)
descriptionEntry = Entry(mainwindow, width=20)
picsEntry = Entry(mainwindow, width=20)
priceEntry = Entry(mainwindow, width=20)
#Creating Labels:
usernameLable = Label(mainwindow, text="Username:")
pwLable = Label(mainwindow, text="Password:")
sellprodLable = Label(mainwindow, text="Productname:")
descriptionLable = Label(mainwindow, text="Information about the Product:")
picsLable = Label(mainwindow, text="Path to the pic:")
priceLable = Label(mainwindow, text="Price:")
#packs:
usernameLable.pack()
usernameEntry.pack()
pwLable.pack()
pwEntry.pack()
sellprodLable.pack()
sellprodEntry.pack()
descriptionLable.pack()
descriptionEntry.pack()
picsLable.pack()
picsEntry.pack()
priceLable.pack()
priceEntry.pack()
def getInformation():
username = usernameEntry.get()
pw = pwEntry.get()
sellprod = sellprodEntry.get()
description = descriptionEntry.get()
pics = descriptionEntry.get()
price = priceEntry.get()
print("START")
upload = Upload(username, pw, sellprod, description, pics, price)
upload.bypass()
#Button
goButton = Button(mainwindow, text="Upload the files!", command=lambda : getInformation() )
goButton.pack()
mainwindow.mainloop()