examples/accelerometer/basic/accelerometertest.kv
raw| 1 | #:kivy 1.8.0 |
| 2 | <AccelerometerTest>: |
| 3 | BoxLayout: |
| 4 | orientation: 'vertical' |
| 5 | |
| 6 | Label: |
| 7 | id: x_label |
| 8 | text: 'X: ' |
| 9 | |
| 10 | Label: |
| 11 | id: y_label |
| 12 | text: 'Y: ' |
| 13 | |
| 14 | Label: |
| 15 | id: z_label |
| 16 | text: 'Z: ' |
| 17 | |
| 18 | Label: |
| 19 | id: accel_status |
| 20 | text: '' |
| 21 | |
| 22 | BoxLayout: |
| 23 | size_hint_y: None |
| 24 | height: '48dp' |
| 25 | padding: '4dp' |
| 26 | |
| 27 | ToggleButton: |
| 28 | id: toggle_button |
| 29 | text: 'Start accelerometer' |
| 30 | on_press: root.do_toggle() |