-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsoftuni_chedule.py
287 lines (263 loc) · 6.38 KB
/
softuni_chedule.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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
from kivy.app import App
from kivy.uix.screenmanager import Screen, ScreenManager
from kivy.uix.gridlayout import GridLayout
from kivy.uix.popup import Popup
from kivy.lang import Builder
from kivy.uix.label import Label
Builder.load_string("""
<HomeScreen>:
GridLayout:
pos: self.pos
rows: 8
padding: 70
spacing: 10, 10
Label:
text: "SOFTUNI Fundamentals TIMETABLE"
Button:
text: "WELCOME"
size_hint: None, None
size: 100, 40
# on_release: root.welcome()
Button:
text: "MONDAY"
on_release:root.manager.current='monday'
Button:
text: "TUESDAY"
on_release: root.manager.current='tuesday'
Button:
text: "WEDNESDAY"
on_release: root.manager.current='wednesday'
Button:
text: "THURSDAY"
on_release: root.manager.current='thursday'
Button:
text: "FRIDAY"
on_release: root.manager.current='friday'
Button:
text: "Quit"
on_release: quit()
<MainScreen>:
BoxLayout:
Widget:
Label:
text: "World"
<Monday>:
GridLayout:
cols:4
rows:5
Label:
text: "Course"
Label:
text: "Time"
Label:
text: "Lecture hall"
Label:
text: "Lecturer"
Label:
text: "Basic Syntax"
Label:
text: "10:00-11:00"
Label:
text: "Knowledge"
Label:
text: "Angel Georgiev"
Label:
text: "Basic Syntax Exercise"
Label:
text: "12:00-2:00"
Label:
text: "Experience"
Label:
text: "Mario Zahariev"
Label:
text: "Practical"
Label:
text: "2:00PM"
Label:
text: "LAB"
Label:
text: "Ivaylo Kenov"
Button:
text: "Main Menu"
on_release: root.manager.current='home'
<Tuesday>:
GridLayout:
cols:4
rows:5
Label:
text: "Course"
Label:
text: "Time"
Label:
text: "Lecture hall"
Label:
text: "Lecturer"
Label:
text: "Data Types"
Label:
text: "9:00-10:00"
Label:
text: "Code Ground"
Label:
text: "Angel Georgiev"
Label:
text: "Data Types Exercise"
Label:
text: "10:00-12:00"
Label:
text: "Tech"
Label:
text: "Mario Zahariev"
Label:
text: "HTTP Basics"
Label:
text: "2:00"
Label:
text: "Knowledge"
Label:
text:"Ivaylo Kenov"
Button:
text: "Main Menu"
on_release: root.manager.current='home'
<Wednesday>:
GridLayout:
cols:4
rows:5
Label:
text: "Course"
Label:
text: "Time"
Label:
text: "Lecture hall"
Label:
text: "Lecturer"
Label:
text: "Lists Basics"
Label:
text: "8:00-10:00"
Label:
text: "Tech Lab"
Label:
text: "Angel Georgiev"
Label:
text: "Lists Basics Exercise"
Label:
text: "11:00-1:00"
Label:
text: "Lists Basics"
Label:
text: "Mario Zahariev"
Label:
text: "HTML & CSS Basics"
Label:
text: "1:00-2:00"
Label:
text: "Pixel"
Label:
text: "Ivaylo Kenov"
Button:
text: "Main Menu"
on_release: root.manager.current='home'
<Thursday>:
GridLayout:
cols:4
rows:5
Label:
text: "Course"
Label:
text: "Time"
Label:
text: "Lecture hall"
Label:
text: "Lecturer"
Label:
text: "Functions"
Label:
text: "8:00-10:00"
Label:
text: "Tech Lab"
Label:
text: "Angel Georgiev"
Label:
text: "Functions Exercise"
Label:
text: "12:00-2:00"
Label:
text: "Pixel"
Label:
text: "Mario Zahariev"
Label:
text: "Practical"
Label:
text: "2:00 PM"
Label:
text: "LAB"
Label:
text: "Ivaylo Kenov"
Button:
text: "Main Menu"
on_release: root.manager.current='home'
<Friday>:
GridLayout:
cols:4
rows:4
Label:
text: "Course"
Label:
text: "Time"
Label:
text: "Lecture hall"
Label:
text: "Lecturer"
Label:
text: "Objects and Classes"
Label:
text: "10:00-11:00"
Label:
text: "Graphics Room"
Label:
text: "Mario Zahariev"
Label:
text: "Practical"
Label:
text: "2:00 PM"
Label:
text: "LAB"
Label:
text: "Ivaylo Kenov"
Button:
text: "Main Menu"
on_release: root.manager.current='home'
""")
class HomeScreen(Screen):
def welcome(self):
popup = Popup(title=("Class '18 2015/2016 Rain Semester Timetable"), title_align=('centre'), content=Label(
text=(
"*ELH - Engineering Lecture Hall\n*ELT - Engineering Lecture Theatre\n*LT III - Lecture Theatre III\n*LT IV - Lecture Theatre IV")),
size_hint=(.8, .8))
popup.open()
class MainScreen(Screen):
pass
class Monday(Screen):
pass
class Tuesday(Screen):
pass
class Wednesday(Screen):
pass
class Thursday(Screen):
pass
class Friday(Screen):
pass
sm = ScreenManager()
sm.add_widget(HomeScreen(name='home'))
sm.add_widget(MainScreen(name='main'))
sm.add_widget(Monday(name='monday'))
sm.add_widget(Tuesday(name='tuesday'))
sm.add_widget(Wednesday(name='wednesday'))
sm.add_widget(Thursday(name='thursday'))
sm.add_widget(Friday(name='friday'))
class TimeTableApp(App):
def build(self):
return sm
if __name__ == '__main__':
TimeTableApp().run()