-
Notifications
You must be signed in to change notification settings - Fork 7
/
todo.kv
47 lines (42 loc) · 993 Bytes
/
todo.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
#:kivy 1.9.2
BoxLayout:
orientation: 'vertical'
canvas.before:
Color:
rgb: (1., 1., 1.)
Rectangle:
size: self.size
pos: self.pos
AddTodo:
size_hint: (1., .15)
VisibleTodoList:
size_hint: (1., .75)
Footer:
size_hint: (1., .1)
<Todo>:
strikethrough: self.completed
on_release: self.release_callback(self.t_id)
color: (0., 0., 0., 1.)
<TodoList>:
StackLayout:
orientation: 'lr-tb'
id: todos
size_hint: (1., None)
height: self.minimum_height
<Footer>:
orientation: 'horizontal'
FilterLink:
vis_filter: 'SHOW_ALL'
FilterLink:
vis_filter: 'SHOW_ACTIVE'
FilterLink
vis_filter: 'SHOW_COMPLETED'
<AddTodo>:
orientation: 'horizontal'
TextInput:
id: text_input
size_hint: (.7, 1.0)
Button:
text: 'Submit'
size_hint: (.3, 1.0)
on_release: root.add_todo_callback()