-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.kv
87 lines (86 loc) · 2.61 KB
/
main.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
#: kivy 2.0.0
<Home>:
loc_but:loc_but
tm1: tm1
tm2: tm2
canvas.before:
Color:
rgb: 1,1,1
Rectangle:
size: self.size
size: root.size
BoxLayout:
orientation: 'vertical'
padding: 10, 10
spacing: 10
Label:
size_hint_y: 0.05
font_name: 'font.ttf'
color: 0,0,0
text: 'Rally Clock'
font_size: (self.height * 0.9)
RoundedButton:
color: 0,0,0
size_hint_y: 0.15
bold:True
text: "Time Capture"
on_release: root.manager.current = "Page3"
font_size: (self.height ** 1.2 + self.width ** 1.2) ** 0.5
BoxLayout:
size_hint_y: 0.15
spacing: 10
RoundedButton:
color: 0,0,0
text: 'Log'
bold:True
on_release: root.on_log(self)
font_size: (self.height ** 1.2 + self.width ** 1.2) ** 0.5
RoundedButton:
id: loc_but
color: 0,0,0
halign: 'center'
bold:True
text: 'Location\nD1-TC-01'
on_release: root.manager.current = "StageSel"
font_size: (self.height ** 1.2 + self.width ** 1.2) ** 0.5
RoundedButton:
color: 0,0,0
text: root.up_info
bold:True
on_release: root.upload()
font_size: (self.height ** 1.2 + self.width ** 1.2) ** 0.5
Label:
id: tm1
size_hint_y:0.2
color: 0,0,0
font_size: self.height * 0.9
bold: True
text: "11:23"
Label:
id: tm2
font_size: self.height * 0.9
size_hint_y: 0.3
color: 0,0,0
bold: True
text: "56"
BoxLayout:
size_hint_y:0.15
background_color: 0,0,0,1
orientation:'horizontal'
RoundedButton
size_hint_x: 0.25
color: 0,0,0
text: 'More Options'
bold: True
font_size: (self.height ** 1.2 + self.width ** 1.2) ** 0.5
text_size: self.size
valign: 'middle'
halign: 'center'
on_release: root.manager.current = "Settings"
Widget:
size_hint_x:0.35
color: 0,0,0
Image:
size_hint_x: 0.4
source: 'sign.png'
size: self.texture_size