frat: added screen timers_screen, added new buttons: back, delete_timer, new_timer and the functionality is connected to them, udated fuc list_timers() for work with timers_screens for data;
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
<TimerConstructorScreen>:
|
||||
FloatLayout:
|
||||
# поле вовода "название"
|
||||
TextInput:
|
||||
id: title
|
||||
size_hint: None, None
|
||||
@@ -19,7 +18,6 @@
|
||||
height: 20
|
||||
pos_hint: {"center_x": 0.5, "center_y": 0.8}
|
||||
|
||||
# числовой счётчик "время помидора"
|
||||
Label:
|
||||
text: "помидор"
|
||||
size_hint: None, None
|
||||
@@ -46,7 +44,6 @@
|
||||
pos_hint: {"center_x": 0.7, "center_y": 0.7}
|
||||
on_press: time_tomato_input.increment()
|
||||
|
||||
# числовой счётчик "время прерыва"
|
||||
Label:
|
||||
text: "перерыв"
|
||||
size_hint: None, None
|
||||
@@ -73,7 +70,6 @@
|
||||
pos_hint: {"center_x": 0.7, "center_y": 0.6}
|
||||
on_press: time_break_input.increment()
|
||||
|
||||
# числовой счётчик "время длительного перерыва"
|
||||
Label:
|
||||
text: "перерывище"
|
||||
size_hint: None, None
|
||||
@@ -99,8 +95,7 @@
|
||||
size: 40, 40
|
||||
pos_hint: {"center_x": 0.7, "center_y": 0.5}
|
||||
on_press: time_long_break_input.increment()
|
||||
|
||||
# числовой счётчик "колличество помидоров"
|
||||
|
||||
Label:
|
||||
text: "помидоров"
|
||||
size_hint: None, None
|
||||
@@ -127,20 +122,18 @@
|
||||
pos_hint: {"center_x": 0.7, "center_y": 0.4}
|
||||
on_press: count_tomatos_input.increment()
|
||||
|
||||
# Кнопка "Создать"
|
||||
Button:
|
||||
text: 'Создать'
|
||||
text: "Создать"
|
||||
size_hint: None, None
|
||||
height: 40
|
||||
width: 100
|
||||
pos_hint: {'center_x': 0.7, 'center_y': 0.1}
|
||||
pos_hint: {"center_x": 0.7, "center_y": 0.1}
|
||||
on_press: root.create_timer(self)
|
||||
|
||||
# Кнопка "Назад"
|
||||
Button:
|
||||
text: 'Назад'
|
||||
text: "Назад"
|
||||
size_hint: None, None
|
||||
height: 40
|
||||
width: 100
|
||||
pos_hint: {'center_x': 0.3, 'center_y': 0.1}
|
||||
pos_hint: {"center_x": 0.3, "center_y": 0.1}
|
||||
on_press: root.back(self)
|
||||
Reference in New Issue
Block a user