-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasync_app.kv
More file actions
77 lines (74 loc) · 2.09 KB
/
async_app.kv
File metadata and controls
77 lines (74 loc) · 2.09 KB
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
ScreenManager:
id: screen_manager
#transition: FadeTransition()
MainScreen:
id: main_screen
name: 'main_screen'
manager: 'screen_manager'
MenuScreen:
id: menu_screen
name: 'menu_screen'
manager: 'screen_manager'
<MenuScreen>:
color: "black"
BoxLayout:
orientation: 'vertical'
Label:
text: 'ASCII Life'
font_size: 50
Button:
text_color: "white"
text: 'Oh no go back'
font_size: 24
on_release: app.root.current = 'main_screen'
Label:
text: 'Menu label'
<MainScreen>
color: "black"
BoxLayout:
orientation: 'vertical'
color: "black"
BoxLayout:
id: pltbox
size_hint_y: 1
pos_hint: {"top":1}
BoxLayout:
ToggleButton:
id: btn1
group: 'a'
text: 'Start_client'
allow_no_selection: False
on_state: if self.state == 'down': root.sleeping_callback()
ToggleButton:
id: btn2
group: 'a'
text: 'Stop_client'
allow_no_selection: False
on_state: if self.state == 'down': root.stop_client()
ToggleButton:
id: btn3
group: 'a'
text: 'Scan_devices'
allow_no_selection: False
on_state: if self.state == 'down': root.start_scan()
Label:
id: label
text: ''
Label:
id: blt_message
#text: 'Bluetooth message'
Label:
id: blt_b
#text: 'Bluetooth B message'
Label:
id: blt_e
#text: 'Bluetooth E message'
Label:
id: label_print
font_size: 32
#text: 'Huge counter for screen manager'
Button:
text: 'Goto settings'
on_press:
app.root.transition.direction = 'left'
app.root.current = 'menu_screen'