updated custom_timer; added kv for timer_screen.py, play sound for timer, json reading

This commit is contained in:
Arduinum628
2025-03-27 11:32:54 +03:00
parent dffb4f730b
commit 4e4a6530c2
11 changed files with 171 additions and 112 deletions

37
kv/timer_screen.kv Normal file
View File

@@ -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}