-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodefiesta.py
More file actions
117 lines (72 loc) · 3.33 KB
/
Copy pathcodefiesta.py
File metadata and controls
117 lines (72 loc) · 3.33 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
from tkinter import *
import os
import tkinter
from tkinter import simpledialog
root = Tk()
#this is a python software
def rentorbuy():
USER_INP = simpledialog.askstring(title="Test",
prompt="Are you looking to rent or buy")
agentmatch = Label(root, text = "You have been matched with Alice, a verified agent from Propnex! Thank you!")
agentmatch.pack()
def myClick1():
USER_INP = simpledialog.askstring(title="Test",
prompt="What's your Name and Where are you residing currently? Eg. Zong Yao USA California:")
rentorbuy()
def acceptjob():
acceptjoblabel = Label(root, text = "Congrats!")
acceptjoblabel.pack()
def rejectjob():
rejectjoblabel = Label(root, text = "Please try again!")
rejectjoblabel.pack()
def findjob():
USER_INP1 = simpledialog.askstring(title="Test",
prompt="In which sector are you looking for a job?")
companyfound = Label(root, text = "You have been matched wtih Microsoft, a leading company in the " + USER_INP1 + " sector. Good luck!")
companyfound.pack()
USER_INP1 = simpledialog.askstring(title="Test",
prompt="Do you wish to accept this job? Yes or no.")
if USER_INP1 == "yes":
acceptjob()
else:
rejectjob()
def myClick2():
USER_INP3 = simpledialog.askstring(title="Test",
prompt="What's your Name and Where are you residing currently? Eg. Zong Yao USA California:")
findjob()
def prischoolinfo():
USER_INP5 = simpledialog.askstring(title="Test",
prompt ="You have been enrolled into Greenwood Primary School! Please update on your date of matriculation: (Eg. 20 February 2021")
finalupdate = Label(root, text="Thank you your update. We look forward to see you on "+ USER_INP5)
finalupdate.pack()
def secschoolinfo():
USER_INP5 = simpledialog.askstring(title="Test",
prompt ="You have been enrolled into Hwa Chong Institution! Please update on your date of matriculation: (Eg. 20 February 2021")
finalupdate = Label(root, text="Thank you your update. We look forward to see you on "+ USER_INP5)
finalupdate.pack()
def terschoolinfo():
USER_INP5 = simpledialog.askstring(title="Test",
prompt ="You have been enrolled into NUS! Please update on your date of matriculation: (Eg. 20 February 2021")
finalupdate = Label(root, text="Thank you your update. We look forward to see you on "+ USER_INP5)
finalupdate.pack()
def findschool():
USER_INP5 = simpledialog.askstring(title="Test",
prompt ="For what age are you looking for an education in?:")
agetoschool = int(USER_INP5)
if agetoschool<13:
prischoolinfo()
elif agetoschool<18:
secschoolinfo()
else:
terschoolinfo()
def myClick3():
USER_INP4 = simpledialog.askstring(title="Test",
prompt = "What's your Name and Where are you residing currently? Eg. Zong Yao USA California:")
findschool()
accomodationbutton = Button(root, text = "Accomodation", padx=100, pady=80, command=myClick1)
accomodationbutton.pack()
jobbutton = Button(root, text = "Jobs", padx=125, pady=85, command = myClick2)
jobbutton.pack()
educationbutton = Button(root, text = "Education", padx = 110, pady=85, command = myClick3)
educationbutton.pack()
root.mainloop()