-
Notifications
You must be signed in to change notification settings - Fork 8
/
main.kv
68 lines (66 loc) · 1.84 KB
/
main.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
<RootWidget>:
# this is the rule for your root widget, defining it's look and feel.
GridLayout:
cols: 2
padding: [80,20]
spacing: [80,20]
Label:
text: 'L1'
id: L1
ToggleButton:
state: root.getState1()
id: S1
text: root.Condition1()
background_color: [1,1,1,1]
on_press: root.setState1()
disabled: True
Label:
id: L2
text: 'L2'
ToggleButton:
state: root.getState2()
id: S2
text: root.Condition2()
background_color: [1,1,1,1]
on_press: root.setState2()
disabled: True
Label:
id: L3
text: 'F1'
ToggleButton:
state: root.getState3()
id: S3
text: root.Condition3()
background_color: [1,1,1,1]
on_press: root.setState3()
disabled: True
Label:
id: L4
text: 'F2'
ToggleButton:
state: root.getState4()
id: S4
text: root.Condition4()
background_color: [1,1,1,1]
on_press: root.setState4()
disabled: True
Button:
id: ManButton
on_press: root.ManualSelection()
text: 'CHANGE TO AUTOMATIC'
background_color: [2,2,.8,1]
disabled: True
Button:
id: AutoButton
on_press: root.AutomaticSelection()
text: 'CHANGE TO MANUAL'
background_color: [2,1,.8,1]
disabled: True
Button:
id: RefreshButton
on_press: root.startState()
text: 'START'
background_color: [0,2,2.5,1]
Label:
id: L5
text: ""