-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkivytimer.kv
49 lines (40 loc) · 1.24 KB
/
kivytimer.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
#:kivy 1.0.9
<KivyTimer>:
BoxLayout:
orientation: 'vertical'
pos: root.pos
size: root.size
Label:
text: str(root.left_time)
font_size: 100
BoxLayout:
orientation: 'horizontal'
size_hint: 1.0, 0.3
Button:
text: '+1 minute'
font_size: 16
on_press: root.on_command('+1 minute')
Button:
text: 'Stop' if root.is_countdown else 'Start'
font_size: 16
on_press: root.on_command('start/stop')
Button:
text: 'Reset'
font_size: 16
on_press: root.on_command('reset')
# ボタン追加
BoxLayout:
orientation: 'horizontal'
size_hint: 1.0, 0.3
Button:
text: '+10 second'
font_size: 16
on_press: root.on_command('+10 second')
Button:
text: '+30 second'
font_size: 16
on_press: root.on_command('+30 second')
Button:
text: '+3 minute'
font_size: 16
on_press: root.on_command('+3 minute')