generated from nj-ramadhan/labtek-mbd-pykivy-geo-resistivity-meter-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreen_main_menu.kv
176 lines (147 loc) · 3.52 KB
/
screen_main_menu.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#:kivy 2.1.0
<ScreenMainMenu>:
MDBoxLayout:
orientation: "vertical"
# header layout
MDBoxLayout:
id: header_layout
orientation: "horizontal"
padding: 20
size_hint_y: 0.1
Image:
id: logo
source:'asset/logo_rafindo.png'
size_hint_x: 0.25
allow_stretch: True
MDBoxLayout:
orientation: "vertical"
MDLabel:
id: subtitle
text: "PIPE BENDING CNC MACHINE"
halign: "center"
valign: "middle"
font_style: 'H5'
MDBoxLayout:
orientation: "horizontal"
padding: 50, 0
spacing: 50
MDFillRoundFlatIconButton:
id: comm_status
icon: "connection"
text: "Status:"
font_style: 'Button'
size_hint_x: 0.5
MDFillRoundFlatIconButton:
id: bt_iot_enable
icon: "wifi"
text: "IOT DISABLED"
font_style: 'Button'
size_hint_x: 0.5
on_release: root.exec_iot_enable()
Image:
id: logo
source:'asset/logo_polman.png'
size_hint_x: 0.25
allow_stretch: True
# title layout
MDBoxLayout:
id: layout_title
orientation: "horizontal"
size_hint_y: 0.05
MDIconButton:
id: bt_menu
icon: "menu"
size_hint_x: 0.2
on_press: root.screen_main_menu()
MDLabel:
text: "MAIN MENU"
halign: "center"
valign: "middle"
font_style: 'H6'
MDIconButton:
id: bt_shutdown
icon: "power"
size_hint_x: 0.2
on_press: root.exec_shutdown()
# main menu layout
MDGridLayout:
id: layout_main_menu
cols:2
size_hint_y: 0.85
padding:20
spacing:20
MDCard:
id: bt_screen_pipe_setting
ripple_behavior: True
orientation: "vertical"
on_press: root.screen_pipe_setting()
padding:20
spacing:20
Image:
source:'asset/logo_pipe_setting.png'
allow_stretch: True
MDLabel:
text: "PIPE SETTING"
halign: "center"
valign: "middle"
font_style: 'Button'
MDCard:
id: bt_screen_machine_setting
ripple_behavior: True
orientation: "vertical"
on_press: root.screen_machine_setting()
padding:20
spacing:20
Image:
source:'asset/logo_machine_setting.png'
allow_stretch: True
MDLabel:
text: "MACHINE SETTING"
halign: "center"
valign: "middle"
font_style: 'Button'
MDCard:
id: bt_screen_advanced_setting
ripple_behavior: True
orientation: "vertical"
on_press: root.screen_advanced_setting()
padding:20
spacing:20
Image:
source:'asset/logo_machine_setting.png'
allow_stretch: True
MDLabel:
text: "ADVANCED SETTING"
halign: "center"
valign: "middle"
font_style: 'Button'
MDCard:
id: bt_screen_operate_auto
ripple_behavior: True
orientation: "vertical"
on_press: root.screen_operate_auto()
padding:20
spacing:20
Image:
source:'asset/logo_operate_machine.png'
allow_stretch: True
MDLabel:
text: "OPERATE MACHINE"
halign: "center"
valign: "middle"
font_style: 'Button'
MDCard:
id: bt_screen_compile
ripple_behavior: True
orientation: "vertical"
on_press: root.screen_compile()
padding:20
spacing:20
Image:
source:'asset/logo_compile_program.png'
allow_stretch: True
MDLabel:
text: "COMPILE PROGRAM"
halign: "center"
valign: "middle"
font_style: 'Button'