mirror of https://github.com/kivy/kivy.git
37 lines
860 B
Plaintext
37 lines
860 B
Plaintext
Widget:
|
|
Video:
|
|
id: myvideo
|
|
source: '/home/tito/code/pymt/examples/apps/videoplayer/softboy.mpg'
|
|
play: mybutton.state == 'down'
|
|
canvas:
|
|
Color:
|
|
rgb: (1, 1, 1)
|
|
BorderImage:
|
|
texture: self.texture
|
|
size: self.texture_size
|
|
|
|
Image:
|
|
source: 'kivy.jpg'
|
|
canvas:
|
|
PushMatrix:
|
|
Rotate:
|
|
angle: 1
|
|
BorderImage:
|
|
border: 250, 250, 250, 250
|
|
texture: self.texture
|
|
size: self.texture_size
|
|
PopMatrix:
|
|
|
|
Button:
|
|
id: mybutton
|
|
text: 'Push me'
|
|
pos: 100, 100
|
|
|
|
Slider:
|
|
width: myvideo.width
|
|
height: 25
|
|
min: 0
|
|
max: myvideo.duration
|
|
value: myvideo.position
|
|
pos: myvideo.pos
|