Repository navigation
Expand file tree
/
Copy pathpages.kv
More file actions
212 lines (208 loc) · 6.49 KB
/
Copy pathpages.kv
File metadata and controls
212 lines (208 loc) · 6.49 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
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
#: kivy 2.0.0
#:import now datetime.datetime
#:import link webbrowser
<Page3>:
rv:rv
tm_label: tm_label
capt_button: capt_button
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
size:root.size
BoxLayout:
orientation: 'vertical'
size: self.parent.size
NavigationBar:
BoxLayout:
size_hint_y:0.92
orientation: 'vertical'
padding: 10, 10
spacing: 10
TimeLabel:
id: tm_label
size_hint_y: 0.2
color: 0,0,0
RV:
viewclass: 'RallyRow'
id: rv
RoundedButton:
id: capt_button
size_hint_y: 0.2
color: 0,0,0
font_size: (self.height ** 1.9 + self.width**1.3) ** 0.5
bold: True
text: 'Capture'
on_press: root.on_capture(now.now())
<StageSel>:
stg_sel_drop: stg_sel_drop
stg_sel_text: stg_sel_text
day: day
stage: stage
stg_sel: stg_sel
box: box
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
size:root.size
BoxLayout:
orientation: 'vertical'
size: self.parent.size
NavigationBar:
BoxLayout:
id: box
size_hint_y: 0.92
orientation: "vertical"
padding: 10, 10
spacing: 10
BoxLayout:
orientation: "horizontal"
size_hint_y: 0.15
Label:
size_hint_x: 0.4
text: "Present Task"
color: 0,0,0
Spinner:
id: stage
text: 'Time Control IN'
size_hint_x:0.6
values: 'Time Control IN', 'Rally Start of the day'
on_text: root.on_stage(self.text)
BoxLayout:
orientation: "horizontal"
size_hint_y: 0.15
Label:
size_hint_x: 0.4
text: "Rally Day"
color: 0,0,0
Spinner:
id: day
text: '01'
size_hint_x:0.6
values: '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22'
on_text: root.but_text_ch(day_no=self.text)
BoxLayout:
id: stg_sel
orientation: "horizontal"
size_hint_y: 0.15
Label:
id: stg_sel_text
size_hint_x: 0.4
text: "Stage No."
color: 0,0,0
Spinner:
id: stg_sel_drop
text: '01'
size_hint_x:0.6
values: '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30'
on_text: root.but_text_ch(stg_no=self.text)
Label:
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
size_hint_x: 1
size_hint_y: 0.47 if root.show_stg_sel else 0.62
text: ''
color: 0,0,0
<ViewLog>:
rv:rv
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
BoxLayout:
orientation: 'vertical'
size: self.parent.size
NavigationBar:
BoxLayout:
size_hint_y: 0.92
orientation: "vertical"
padding: 10, 10
spacing: 10
RV:
id:rv
viewclass: 'LogRow'
<SetPage>:
use_ll: use_ll
use_rt: use_rt
sync_but:sync_but
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
BoxLayout:
orientation: 'vertical'
size: self.parent.size
NavigationBar:
BoxLayout:
size_hint_y: 0.92
orientation: "vertical"
padding: 10, 10
spacing: 10
RoundedButton:
id:sync_but
color:0,0,0
bold: True
text_size:self.size
valign:'center'
halign: 'center'
size_hint_y:0.1
text: 'Sync Time'
on_release: root.sync()
RoundedButton:
color:0,0,0
bold: True
size_hint_y:0.1
text: 'Erase ALL Captures'
on_release: root.erase_log()
RoundedButton:
color:0,0,0
bold: True
size_hint_y:0.1
text: f'Set Re/Start time if present\nCurrent time: {root.tm} mins'
on_release: root.re_start()
BoxLayout:
orientation:'horizontal'
padding: 10, 10
spacing: 10
size_hint_y:0.1
Label:
size_hint_x:0.7
text_size:self.size
halign: 'center'
valign: 'center'
color: 0,0,0
text:'Use Restart Time'
Switch:
id: use_rt
size_hint_x:0.3
on_active: root.on_rt_active(self.active)
BoxLayout:
orientation:'horizontal'
padding: 10, 10
spacing: 10
size_hint_y:0.1
Label:
size_hint_x:0.7
color: 0,0,0
text:'Use Lifeline'
Switch:
id: use_ll
size_hint_x:0.3
on_active: root.on_ll_active(self.active)
Label:
size_hint_y:0.4
markup: True
text_size:self.size
halign: 'center'
valign: 'bottom'
text: f'[ref=mail]Feedback and Queries\n[u][b]rallyclockuploader@gmail.com[/u][/b][/ref]\nRally Clock v{root.version}'
color:0,0,0
on_ref_press: link.open('mailto:rallyclockuploader@gmail.com')