-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathderpalgorithmus.kv
98 lines (92 loc) · 3.5 KB
/
derpalgorithmus.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<DerPAlgorithmusGUI>:
sm: sm
persons_view: persons_view
onditions_view: conditions_view
results_view: results_view
BoxLayout:
orientation: 'vertical'
ActionBar:
ActionView:
ActionPrevious:
title: 'DerPAlgorithmus'
on_release: root.button_prev()
ActionButton:
id: actionprev
icon: 'icons/prev.png'
on_release: root.button_prev()
important: False
ActionButton:
icon: 'icons/next.png'
on_release: root.button_next()
important: True
ActionOverflow:
ActionButton:
text: 'Add'
on_release: root.button_plus()
ActionButton:
text: 'Remove'
on_release: root.button_minus()
ScreenManager:
id: sm
Screen:
name: 'Persons'
ScrollView:
StackLayout:
id: persons_view
size_hint_y: None
height: self.minimum_height
padding: 5
spacing: 5
Label:
text: '[color=00bbbb][b]Persons[/b][/color]'
markup: True
size_hint: 1, None
size: self.texture_size[0], self.texture_size[1]*2
Screen:
name: 'Conditions'
ScrollView:
StackLayout:
id: conditions_view
size_hint_y: None
height: self.minimum_height
Label:
text: '[color=00bbbb][b]Conditions[/b][/color]'
markup: True
size_hint: 1, None
size: self.texture_size[0], self.texture_size[1]*2
Screen:
name: 'Results'
ScrollView:
StackLayout:
id: results_view
size_hint_y: None
height: self.minimum_height
Label:
text: '[color=00bbbb][b]Results[/b][/color]'
markup: True
size_hint: 1, None
size: self.texture_size[0], self.texture_size[1]*2
BoxLayout:
orientation: 'vertical'
Button:
pos_hint: {'right': 1, 'bottom': 1}
size_hint: None, None
size: actionprev.size if sm.current != 'Results' else [0,0]
on_release: root.button_minus()
background_color: 0, 0, 0, 0
Image:
source: 'icons/minus.png'
size: self.parent.size
center: self.parent.center
allow_stretch: True
Button:
pos_hint: {'right': 1, 'bottom': 1}
size_hint: None, None
size: actionprev.size if sm.current != 'Results' else [0,0]
on_release: root.button_plus()
background_color: 0, 0, 0, 0
Image:
source: 'icons/plus.png'
size: self.parent.size
center: self.parent.center
allow_stretch: True