/usr/share/pymt-examples/apps/videoplayer/video.py is in python-pymt 0.5.1-0ubuntu3.
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 | from pymt import *
from os.path import dirname, join
current_dir = dirname(__file__)
if __name__ == '__main__':
filename = join(current_dir, 'softboy.avi')
video = MTVideo(filename=filename, autostart=True)
scat = MTScatterWidget(size=video.size, pos=(20, 20))
connect(video, 'on_resize', scat, 'size')
scat.add_widget(video)
runTouchApp(scat)
|