From d9b65ccefea65bed1699a69f1bdc054dc7358187 Mon Sep 17 00:00:00 2001 From: Kevin Hockey Date: Wed, 16 Jun 2010 18:36:00 +0000 Subject: Working input reader for ultimate test --- diff --git a/anim/completeTest/fileTypeTests.py b/anim/completeTest/fileTypeTests.py index ceab50c..7ea7f89 100755 --- a/anim/completeTest/fileTypeTests.py +++ b/anim/completeTest/fileTypeTests.py @@ -38,15 +38,18 @@ print "1. Simple File Type Variety Test, as images (NOTE: not working yet)" print "2. Simple File Type variety Test, as sprites (NOTE: not working yet)" print "3. Selected Scalability Test (NOTE: not working yet)" file=open('./testresult.csv','a') -list=[] +list=[imgSetup, spriteSetup, scaleSetup] keyIn="temp val" -val=0 -while keyIn is not None: - keyIn=raw_input(">") - list[val]=int(keyIn) - val=val+1 -print list+" and switching now..." +while True: + keyIn=raw_input(">") + try: + temp = int(keyIn) + list[temp - 1]() + except: + break + +#print list+" and switching now..." # #for i in list: # call what's in list[i] somehow -- cgit v0.9.1