[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

sample[kivy8] 01 Camera

| kv |
kv := '
BoxLayout:
    orientation: "vertical"

    Camera:
        id: camera
        resolution: 399, 299

    BoxLayout:
        orientation: "horizontal"
        size_hint_y: None
        height: "48dp"
        Button:
            text: "Start"
            on_release: camera.play = True

        Button:
            text: "Stop"
            on_release: camera.play = False'.
Kivy app build: [ Kivy lang builder loadString: kv ]; run