Debian Codegraph @

examples/accelerometer/using_graph/accelerometerdemo.kv

raw
1 #:kivy 1.8.0
2 <AccelerometerDemo>:
3 BoxLayout:
4 orientation: 'vertical'
5 padding: 20
6
7 Graph:
8 size_hint_y: 0.8
9 id: graph_plot
10 xlabel:'Time'
11 ylabel:'Value'
12 y_grid_label: True
13 x_grid_label: True
14 padding: 5
15 xmin:0
16 xmax:100
17 ymin:-15
18 ymax:20
19
20 Button:
21 id: toggle_button
22 text: 'Start Accelerometer'
23 size_hint_y: 0.2
24 on_press: root.do_toggle()
25
26 <ErrorPopup>:
27 size_hint: .7, .4
28 title: "Error"
29
30 BoxLayout:
31 orientation: 'vertical'
32 padding: 10
33 spacing: 20
34
35 Label:
36 size_hint_y: 0.4
37 text: "This feature has not yet been implemented on this platform."
38 Button:
39 text: 'Dismiss'
40 size_hint_y: 0.4
41 on_press: root.dismiss()
42