From 90e4f968fff06c500b95b6331a49c64328430e29 Mon Sep 17 00:00:00 2001 From: slm Date: Wed, 16 Jun 2010 18:49:17 +0000 Subject: Merged branch 'master' of ssh://jtmengel@git.fedorahosted.org/git/fortune_hunter Conflicts: anim/completeTest/fileTypeTests.py --- diff --git a/anim/completeTest/fileTypeTests.py b/anim/completeTest/fileTypeTests.py index 287d361..69c5dfa 100755 --- a/anim/completeTest/fileTypeTests.py +++ b/anim/completeTest/fileTypeTests.py @@ -39,13 +39,23 @@ print "2. Simple File Type variety Test, as sprites (NOTE: not working yet)" print "3. Selected Scalability Test (NOTE: not working yet)" i=int(1) file=open('./testresult.csv','a') - -testOrder -keyIn - -while 1: - keyIn=int(raw_input(i+">")) - if keyIn is not "done": - testOrder[i]=keyIn - int=int(int+1) - else: break +list=[imgSetup, spriteSetup, scaleSetup] +keyIn="temp val" + +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 +# print i +# if i == keyInt +# list[int(i)] +# switch.get( i , sys.exit("Goodbye!") ) +# print 'looped through' -- cgit v0.9.1