-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathespgui.kv
68 lines (66 loc) · 2.36 KB
/
espgui.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
#:kivy 1.0.5
<EspGui>
BoxLayout:
orientation:'vertical'
Label:
text:"uPyEspGui"
size_hint: (1,None)
height:'32sp'
Accordion:
orientation:'vertical'
AccordionItem:
id: ai_connexion
title:"Not connected"
BoxLayout:
orientation:'vertical'
BoxLayout:
orientation:'horizontal'
size_hint: (1,None)
height: '32sp'
Label:
text: "IP addr:"
size_hint:(0.3,1)
TextInput:
id: txt_addr
multiline: False
text: root.addr
on_text: root.addr=self.text
size_hint: (0.7,1)
BoxLayout:
orientation:'horizontal'
size_hint: (1,None)
height: '32sp'
Label:
text: "port:"
size_hint: (0.3,1)
TextInput:
id: txt_port
multiline: False
text: root.port
on_text: root.port=self.text
size_hint: (0.7,1)
BoxLayout:
orientation:'horizontal'
size_hint: (1,None)
height: '32sp'
padding: (10,5,10,5)
spacing: 5
ToggleButton:
id: tb_say_hello
text: "Say Hello"
group: 'connexion'
on_press: root.do_say_hello()
ToggleButton:
id:tb_disconnect
text: "Disconnect"
group: 'connexion'
state: 'down'
on_press: root.do_disconnect()
Label:
id: l_status
text_size: (root.width, None)
size: self.texture_size
AccordionItem:
title:"Second Item"
AccordionItem:
title:"Third Item"