Created
July 31, 2010 11:37
-
-
Save taybenlor/502082 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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