Debian Codegraph @

examples/camera/basic/camerademo.kv

raw
1 #:kivy 1.8.0
2 <CameraDemo>:
3 FloatLayout:
4 Label:
5 id: path_label
6 text: 'Working Directory:'
7 pos_hint: {'x': 0.25, 'y': 0.7}
8 size_hint: 0.5, 0.1
9
10 TextInput:
11 id: filename_text
12 text: 'enter_file_name_here.jpg'
13 pos_hint: {'x': 0.25, 'y': .6}
14 size_hint: 0.5, 0.1
15 multiline: False
16
17 Button:
18 text: 'Take picture from camera!'
19 pos_hint: {'x': 0.25, 'y': .3}
20 size_hint: 0.5, 0.2
21 on_press: root.do_capture()
22
23 <MsgPopup>:
24 size_hint: .7, .4
25 title: "Attention"
26
27 BoxLayout:
28 orientation: 'vertical'
29 padding: 10
30 spacing: 20
31
32 Label:
33 id: message_label
34 size_hint_y: 0.4
35 text: "Label"
36 Button:
37 text: 'Dismiss'
38 size_hint_y: 0.4
39 on_press: root.dismiss()
40
41