/usr/share/kivy-examples/kv/app_video.kv is in python-kivy-examples 1.9.1-1.
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 38 39 40 41 | BoxLayout:
orientation: 'vertical'
spacing: 5
padding: 5
Video:
id: myvideo
source: '../widgets/softboy.avi'
allow_stretch: True
on_eos: self.play = True; print('woot we are looping!')
BoxLayout:
size_hint_y: None
height: 30
Label:
id: mylabel
text: str(myvideo.position)
Slider:
value: myvideo.position
max: myvideo.duration
on_value: print(args[1])
BoxLayout:
size_hint_y: None
height: 50
spacing: 5
ToggleButton:
group: 'video'
text: 'Play'
state: 'down' if myvideo.play else 'normal'
on_press: myvideo.play = True
ToggleButton:
group: 'video'
text: 'Stop'
state: 'down' if not myvideo.play else 'normal'
on_press: myvideo.play = False
|