Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/anim
diff options
context:
space:
mode:
authorKevin Hockey <Blitzkev@gmail.com>2010-06-16 18:36:00 (GMT)
committer Kevin Hockey <Blitzkev@gmail.com>2010-06-16 18:36:00 (GMT)
commitd9b65ccefea65bed1699a69f1bdc054dc7358187 (patch)
tree0e135c080db58b45f425a0e3add92a4548c40ab6 /anim
parent3f1497ba5a7bec0f83276c3730ecf4e56d2dc6ca (diff)
Working input reader for ultimate test
Diffstat (limited to 'anim')
-rwxr-xr-xanim/completeTest/fileTypeTests.py17
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