diff options
author | Kevin Hockey <Blitzkev@gmail.com> | 2010-06-16 18:36:00 (GMT) |
---|---|---|
committer | Kevin Hockey <Blitzkev@gmail.com> | 2010-06-16 18:36:00 (GMT) |
commit | d9b65ccefea65bed1699a69f1bdc054dc7358187 (patch) | |
tree | 0e135c080db58b45f425a0e3add92a4548c40ab6 /anim | |
parent | 3f1497ba5a7bec0f83276c3730ecf4e56d2dc6ca (diff) |
Working input reader for ultimate test
Diffstat (limited to 'anim')
-rwxr-xr-x | anim/completeTest/fileTypeTests.py | 17 |
1 files changed, 10 insertions, 7 deletions
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 |