-
Notifications
You must be signed in to change notification settings - Fork 1
/
start.kv
306 lines (268 loc) · 8.77 KB
/
start.kv
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<Login>
ben: benName.text
pw: password.text
knopf: btnLgIn
kl: klassen.text
#background_color: ()
GridLayout:
cols:1
size: root.width, root.height
GridLayout:
cols:2
spacing: (2,2)
Label:
size_hint_y: 1
text: "DSB\nBenutzername"
font_size: 100
font_size: root.size[0]/13
TextInput:
allow_copy: True
copydata: self.text
font_size: root.size[0]/20
multiline: False
id: benName
text: root.ben
Label:
size_hint_y: 1
text: "DSB\nPasswort"
font_size: 100
font_size: root.size[0]/13
TextInput:
font_size: root.size[0]/20
password: True
multiline: False
id: password
text: root.pw
BoxLayout:
size_hint_y: 1.25
orientation: 'vertical'
Label:
text: "Klassen:"
font_size: 100
font_size: root.size[0]/13
Label:
text: "mehrere durch \n Kommatrennung möglich"
font_size: 100
font_size: root.size[0]/30
TextInput:
font_size: root.size[0]/20
multiline: False
id: klassen
text: root.kl
allow_copy: True
copydata: self.text
hint_text: "z.B.: 12M07 \n oder 12M07,12BG12x\n oder 12 (alle 12. Klassen)"
#on_text: root.test("0")
Button:
text: "Speichern"
#text: str(root.size[0])#/100)
font_size: root.size[0]/10
id: btnLgIn
size_hint: (1.,0.5)
on_release:
i = root.anmPopUp()
root.manager.current = "lockedArea" if i == True else "login"
root.manager.transition.direction= "left"
Button:
text: "Abbrechen"
font_size: 100
font_size: root.size[0]/10
id: back
size_hint: (1.,0.5)
background_color: (0.88, 0.17, 0.17, 0.9)
#background_color: (1, 1, 1, 1)
#background_color: (0, 0, 0, 1)
on_release:
i = root.insertFromConf()
root.manager.current = "lockedArea" if i == True else "login"
root.manager.transition.direction= "left"
<uebersicht>
bLay: BL
fbox: fbox
tab1: Tab1
tab2: Tab2
BoxLayout:
id: fbox
orientation: 'vertical'
GridLayout:
rows:1
cols:2
size_hint_y: 0.1
Button:
font_size: root.size[0]/20
size_hint_y: 0.1
id: Tab1
text: "Nur meine Klasse(n)"
#font_size: 100
on_release:
root.manager.current= "lockedArea"
root.manager.transition.direction= "right"
Button:
id:Tab2
font_size: root.size[0]/20
size_hint_y: 0.1
text: "Gesamter Plan"
#font_size: 100
on_release:
root.manager.current= "gesTabel"
root.manager.transition.direction= "left"
ScrollView:
do_scroll_x: False
do_scroll_y: True
GridLayout:
cols:1
id: BL
#height: self.texture_size[1]
#spacing: '10dp'
default_size: None, dp(56)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
width: self.minimum_width
GridLayout:
rows:1
cols:2
size_hint_y: 0.1
Button:
font_size: root.size[0]/15
size_hint_y: 0.1
text: "Einstellungen"
#font_size: 100
on_release:
root.manager.current= "login"
root.manager.transition.direction= "right"
Button:
font_size: root.size[0]/15
size_hint_y: 0.1
text: "Refresh"
#font_size: 100
on_release:
root.refresh()
#test
<Table>
name: headerLable.text
#recycleV:recycle
gridLay: grid
colcount: 1
rowcount: 1
#data_items: recycle.data
GridLayout:
cols: 1
rows: 2
GridLayout:
cols: 3
rows: 1
size_hint_y: 0.1
Button:
size_hint_x: 0.3
text: "zurück"
font_size: root.size[0]/30
on_release:
root.manager.current= "lockedArea" if not "Total_" in root.name else "gesTabel"
root.manager.transition.direction= "right"
root.delete()
Label:
id: headerLable
size_hint_x: 1
Button:
disabled: True if "Total_" in headerLable.text else False
size_hint_x: 0.3
text: "Voller Plan"
font_size: root.size[0]/30
on_release:
root.vollerPlan()
root.delete()
#text: "Empty"
ScrollView:
id: scroll
#viewclass: 'TableLable'
#data: root.data_items
GridLayout:
id: grid
rows: root.rowcount
cols: root.colcount
#row_default_height: 80
#row_force_default: True
#row_
default_size: None, dp(56)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
width: self.minimum_width
spacing: 2
#RV:
#id:recycle
<BackgroundColor@Widget>
background_color: (1, 1, 1,1)
canvas.before:
Color:
rgba: root.background_color
Rectangle:
size: self.size
pos: self.pos
<MenuButton@Button+BackgroundColor>
height: self.texture_size[1]+self.texture_size[1]/2
text_size: self.width, None
size_hint_y: None
font_size: root.size[0]/15
color:(0,0,0,1)
<TableLable@Label+BackgroundColor>
texts:self.text
firstColor:True
#bColor: self.background_color
maxheight: self.height
text : root.texts
text_size: self.width, None
#height: root.maxheight
minimum_height: self.texture_size[1]
height: self.texture_size[1]
size_hint_y: None
text_size: self.width, None
#on_touch_down(touch):
# root.test()
#height:180
#height: 1800
#texts:""
#texts:self.text
#text:"old"#root.texts
color: (0.1, 0.1, 0.1, 1)
background_color: (1, 0, 0, 1.0)
#background_color: (0.980392156862745,0.827450980392157,0.650980392156863,1) if root.firstColor else (0.992156862745098, 0.925490196078431, 0.850980392156863,1)
#background_color: (0.980,0.827,0.650,1)# if root.firstColor else (0.992156862745098, 0.925490196078431, 0.850980392156863)
<RV>:
grid: rGL
viewclass: 'TableLable'
RecycleGridLayout:
id: rGL
rows: 100
cols: 3
default_size: None, dp(56)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
#orientation: 'vertical'
<Test>
GridLayout:
#rows: 2
#cols: 1
#row_default_height: '48dp'
#row_force_default: True
#GridLayout:
# size_hint_y: 0.1
# rows: 1
# cols: 2
# Button:
# text: 'Hall1'
# size_hint_x: 0.25
# Label:
# text: 'Hall1'
#RV:
<Label>
color:(0,0,0,1)
background_color: ( 0.992156862745098, 0.925490196078431, 0.850980392156863, 1)
canvas.before:
Color:
rgba: ( 0.992156862745098, 0.925490196078431, 0.850980392156863, 1)
Rectangle:
pos:self.pos
size:self.size