tools/pythonpoint/demos/examples.py
branchpy33
changeset 3800 e8547b00eb59
parent 3794 398ea04239b5
child 4302 f3ff56a22b2e
equal deleted inserted replaced
3799:9e42094b0298 3800:e8547b00eb59
   781 ##        canvas.restoreState()
   781 ##        canvas.restoreState()
   782 
   782 
   783 # D = dir()
   783 # D = dir()
   784 g = globals()
   784 g = globals()
   785 Dprime = {}
   785 Dprime = {}
   786 from types import StringType
       
   787 for a,b in g.items()):
   786 for a,b in g.items()):
   788     if a[:4]=="test" and type(b) is StringType:
   787     if a[:4]=="test" and isinstance(b,str):
   789         #print 'for', a
   788         #print 'for', a
   790         #print b
   789         #print b
   791         b = b.strip()
   790         b = b.strip()
   792         exec(b+'\n')
   791         exec(b+'\n')
   793 
   792