-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.kv
82 lines (70 loc) · 2.05 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<MainScreen>:
name: 'main'
armControl: armControl
auto: auto
on_enter: root.start_joy_thread() # JOYSTICK :D
magnetControl: magnetControl
FloatLayout:
size_hint: None, None
##################
##### BUTTONS ####
##################
# Quit button
Button:
text: 'X'
font_size: 23
size_hint: None, None
size: root.width * 0.02, root.width * 0.02
x: root.width * 0.965
y: root.height * 0.945
background_color: 0.7, 0.7, 0.7, 1
on_release: root.quit()
DPEAButton:
id: auto
color: 0.917, 0.796, 0.380, 1
text: "Start"
center_x: root.width * 0.5
y: root.height * 0.55
background_color: 1, 0, 0, 0
background_normal: ''
size_hint: None,None
size: 300,100
on_press: root.threadautomatic()
# Turn on/off gate
DPEAButton:
id: armControl
color: 0,0,1,1
text: "Arm Up"
center_x: root.width * 0.35
y: root.height * 0.35
background_color: 0, 0, 0, 0
background_normal: ''
size_hint: None,None
size: 300,100
on_press: root.threadforarm()
DPEAButton:
id: magnetControl
color: 1, 0, 0, 1
text: "Magnet Off"
center_x: root.width * 0.65
y: root.height * 0.35
background_color: 0, 0, 0, 0
background_normal: ''
size_hint: None,None
size: 500,200
on_press: root.toggleMagnet()
##################
##### SLIDERS ####
##################
##################
##### LABELS #####
##################
Label:
id: title
text: 'Robotic Arm'
font_size: 55
bold: True
center_x: root.width * 0.5
halign: 'center'
y: root.height * 0.75
color: 0.9, 0.9, 0.9, 1