-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.kv
36 lines (33 loc) · 1011 Bytes
/
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
#:kivy 2.0.0
ScreenManager:
id: screen_manager
flasher_main_screen: flasher_main_screen
MainScreen:
manager: screen_manager
FlasherMainScreen:
id: flasher_main_screen
manager: screen_manager
PioFileChooserScreen:
manager: screen_manager
<MainScreen>:
name: "MainScreen"
FloatLayout:
size_hint: (.96, .96)
pos_hint: {"center_x": 0.5, "center_y": 0.5}
MenuLayout:
Button:
text: "Shutdown"
size_hint: (.2, .8)
pos_hint: {"x": .792, "center_y": 0.5}
on_press:
root.on_shutdown()
GridLayout:
size_hint: (1, .85)
pos_hint: {"x": 0, "y": 0}
spacing: [10, 10]
cols: 1
Button:
text: "Firmware Flasher"
on_press:
root.manager.transition.direction = 'left'
root.manager.current = "FlasherMainScreen"