Skip to content

Instantly share code, notes, and snippets.

@taybenlor
Created July 31, 2010 11:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taybenlor/502082 to your computer and use it in GitHub Desktop.
Save taybenlor/502082 to your computer and use it in GitHub Desktop.
from pymt import *
from glob import glob
from random import randint
root = MTScatterPlane()
width = int(pymt_config.get('graphics', 'width'))
height = int(pymt_config.get('graphics', 'height'))
for fname in glob('pictures/*.jpg'):
x, y = randint(0,width), randint(0,height)
root.add_widget(MTScatterImage(filename=fname, pos=(x,y), scale=0.1))
runTouchApp(root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment