/[gzz]/gzz/gfx/util/demo.py
ViewVC logotype

Diff of /gzz/gfx/util/demo.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by tjl, Sat Jan 25 13:45:03 2003 UTC revision 1.13 by tjl, Wed Feb 5 08:14:45 2003 UTC
# Line 80  def loadScenes(): Line 80  def loadScenes():
80      print "RELOAD"      print "RELOAD"
81      global globalScenes      global globalScenes
82      global globalHelp, globalSceneMap, globalSceneHelp      global globalHelp, globalSceneMap, globalSceneHelp
83        global currentScene
84    
85      if 1:      if 1:
86          reloadmod.reloadModules()          reloadmod.reloadModules()
# Line 88  def loadScenes(): Line 89  def loadScenes():
89          demowindow.w = w          demowindow.w = w
90          if "." not in scenefile or "/" in scenefile:          if "." not in scenefile or "/" in scenefile:
91              exec open(scenefile) in globals(), globals()              exec open(scenefile) in globals(), globals()
92                if currentScene == None:
93                    currentScene = Scene()
94          else:          else:
95              print "No file found, trying module."              print "No file found, trying module."
96              exec """              exec """
# Line 118  theModule = %(scenefile)s Line 121  theModule = %(scenefile)s
121    
122              print globalScenes, globalSceneHelp, globalSceneMap              print globalScenes, globalSceneHelp, globalSceneMap
123    
             global currentScene  
124              currentScene = globalSceneMap["F1"]              currentScene = globalSceneMap["F1"]
125              GlobalScene.__doc__ = globalHelp              GlobalScene.__doc__ = globalHelp
126    

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26