-
Notifications
You must be signed in to change notification settings - Fork 0
/
disorderbanisher.kv
70 lines (66 loc) · 1.59 KB
/
disorderbanisher.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#:kivy 1.11.0
#:import Factory kivy.factory.Factory
<AddItemPopup>:
title: 'Add an Item'
size_hint: .5, .5
auto_dismiss: False
BoxLayout:
text_input: text_input
orientation: 'vertical'
TextInput:
id: text_input
Button:
text: 'Add'
on_press: root.add_row()
Button:
text: 'Dismiss'
on_press: root.dismiss()
<RecycleViewRow>:
id: rvr
text: ""
check: chk
canvas.before:
Color:
rgba: (.0, 0.9, .1, .3) if self.selected else (0.4, 0.4, 0.4, 1)
Rectangle:
pos: self.pos
size: self.size
orientation: 'horizontal'
size_hint: 1.0, 1.0
Label:
text: root.text
size_hint_x : 1.0
CheckBox:
id: chk
on_active: root.set_check_true()
<RV>:
id: rv
viewclass: 'RecycleViewRow'
RecycleBoxLayout:
id: grid
default_size: None, 100
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
orientation: 'vertical'
<ToDoView>:
orientation: 'vertical'
GridLayout:
cols: 3
row_default_height: 300
size_hint_y: 0.25
Label:
text: "Add or Select To Do"
size_hint_x: 0.3
font_size:32
Button:
text: "Add"
font_size:32
size_hint_x: 0.35
on_press: root.show_popup()
Button:
text: "Remove"
font_size:32
size_hint_x: 0.35
on_press: root.delete_row()
RV: