updated custom_timer; added kv for timer_screen.py, play sound for timer, json reading
This commit is contained in:
1 parent
dffb4f730b
commit
4e4a6530c2
11 files changed
+171
-112
No files matched your search
@@ -0,0 +1,37 @@
|
||||
#:kivy 2.3.1
|
||||
|
||||
<TimerScreen>:
|
||||
FloatLayout:
|
||||
# Кнопка "Старт"
|
||||
Button:
|
||||
text: 'Старт'
|
||||
size_hint: None, None
|
||||
height: 40
|
||||
width: 100
|
||||
pos_hint: {'center_x': 0.3, 'center_y': 0.5}
|
||||
on_release: root.start_timer(self)
|
||||
|
||||
# Кнопка "Пауза"
|
||||
Button:
|
||||
text: 'Пауза'
|
||||
size_hint: None, None
|
||||
height: 40
|
||||
width: 100
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
|
||||
on_release: root.pause_timer(self)
|
||||
|
||||
# Кнопка "Стоп"
|
||||
Button:
|
||||
text: 'Стоп'
|
||||
size_hint: None, None
|
||||
height: 40
|
||||
width: 100
|
||||
pos_hint: {'center_x': 0.7, 'center_y': 0.5}
|
||||
on_release: root.stop_timer(self)
|
||||
|
||||
# Label для отображения времени
|
||||
Label:
|
||||
id: time_label
|
||||
text: '00:00:12'
|
||||
size_hint: None, None
|
||||
pos_hint: {'center_x': 0.5, 'center_y': 0.6}
|
||||
Reference in new issue
Block a user