/usr/share/pymt-examples/widgets/kineticimage.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 14 15 | from pymt import *
import glob, os
k = MTKineticList(size=getWindow().size, friction=1, do_x=True,
h_limit=4, do_y=False, title=None, deletable=False,
searchable=False, w_limit=0)
# search file in image directory
pattern = os.path.join(os.path.dirname(__file__), 'images', '*.png')
for x in xrange(10):
for filename in glob.glob(pattern):
item = MTKineticImage(image=Loader.image(filename))
k.add_widget(item)
runTouchApp(k)
|