-
Notifications
You must be signed in to change notification settings - Fork 1
/
clock.kv
42 lines (35 loc) · 896 Bytes
/
clock.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
<Label>:
font_name: 'Roboto'
font_size: 60
markup: True
<RobotoButton@Button>:
background_normal: 'button_normal.png'
background_down: 'button_down.png'
border: (2, 2, 2, 2)
font_name: 'Roboto'
font_size: 25
bold: True
BoxLayout:
orientation: 'vertical'
Label:
id: time
text: '[b]00[/b]:00:00'
BoxLayout:
height: 90
orientation: 'horizontal'
padding: 20
spacing: 20
size_hint: (1, None)
RobotoButton:
id: start_stop
text: 'Start'
on_press: app.start_stop()
RobotoButton:
id: reset
text: 'Reset'
background_normal: 'red_button_normal.png'
background_down: 'red_button_down.png'
on_press: app.reset()
Label:
id: stopwatch
text: '00:00.[size=40]00[/size]'