/usr/share/kivy-examples/android/takepicture/takepicture.kv is in python-kivy-examples 1.9.1-1build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | #:kivy 1.0
#:import win kivy.core.window
Widget:
canvas:
Color:
rgb: .85, .87, .88
Rectangle:
size: self.size
Button:
text: 'Take a picture'
width: self.texture_size[0] + dp(40)
height: '48dp'
on_release: app.take_picture()
<Picture>:
on_size: self.center = win.Window.center
size: image.size
size_hint: None, None
Image:
id: image
source: root.source
# create initial image to be 400 pixels width
size: 400, 400
# add shadow background
canvas.before:
Color:
rgba: 1, 1, 1, 1
BorderImage:
source: 'shadow32.png'
border: (36, 36, 36, 36)
size:(self.width + 72, self.height + 72)
pos: (-36, -36)
|