-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlayoutAutopilotSettings.kv
91 lines (65 loc) · 1.49 KB
/
layoutAutopilotSettings.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
#:kivy 1.1.0
<AutopilotSettings>:
size_hint: .98,.5
auto_dismiss: False
BoxLayout:
orientation: "vertical"
BoxLayout:
size_hint_y: None
height: app.btH
orientation: "horizontal"
Label:
text: "Way of communication:"
Spinner:
id: sp_apConnectionMode
text: ""
values: ('audio jack', 'wifi udp', 'wifi tcp')
BoxLayout:
size_hint_y: None
height: app.btH
orientation: "horizontal"
Label:
text: "If wifi then ip:"
TextInput:
id: ti_apWifiIp
BoxLayout:
size_hint_y: None
height: app.btH
orientation: "horizontal"
CheckBox:
id: cb_AutSetDirRev
size: app.btH,app.btH
size_hint: None,None
on_release: root.on_guiToConfig()
Label:
text: "invert rudder moves"
size: self.texture_size[0],app.btH
size_hint: None,None
BoxLayout:
size_hint_y: None
height: app.btH
orientation: "horizontal"
Button:
text: "-1"
size_hint: None,None
size: app.btH,app.btH
on_release: app.ap.on_curseAdjustBy(-1)
Button:
text: "+1"
size_hint: None,None
size: app.btH,app.btH
on_release: app.ap.on_curseAdjustBy(1)
BoxLayout:
orientation: "horizontal"
Button:
id: bt_cancel
size_hint_y:None
height: app.btH
text: "Defaul settings"
on_press: root.on_bt_toDefault()
Button:
id: bt_ok
size_hint_y:None
height: app.btH
text: "Save"
on_press: root.on_bt_save()