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

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

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

revision 1.23 by tjl, Tue Sep 24 07:26:48 2002 UTC revision 1.24 by benja, Wed Sep 25 11:32:10 2002 UTC
# Line 207  def loadScenes(): Line 207  def loadScenes():
207      except:      except:
208          typ, val, tra = sys.exc_info()          typ, val, tra = sys.exc_info()
209          l = traceback.format_list(traceback.extract_tb(tra))          l = traceback.format_list(traceback.extract_tb(tra))
210            
211          print "ERROR WHILE LOADING! %s\n%s\n"%(str(typ),str(val)), l          print "ERROR WHILE LOADING! %s\n%s\n"%(str(typ),str(val)), l
212    
213  def globalkey(k):  def globalkey(k):
214      pass      pass
215    
216  class Bindings(AbstractBinder):  class Bindings(AbstractBinder):
217      def keystroke(self, s):      def keystroke(self, s, win):
218          print "KEY: '%s'"%s          print "KEY: '%s'"%s
219          if s == "q" or s == "Q":          if s == "q" or s == "Q":
220              System.exit(43)              System.exit(43)
# Line 223  class Bindings(AbstractBinder): Line 223  class Bindings(AbstractBinder):
223          elif not globalkey(s):          elif not globalkey(s):
224              currentScene.key(s)              currentScene.key(s)
225          AbstractUpdateManager.chg()          AbstractUpdateManager.chg()
226      def mouse(self, e):      def mouse(self, e, win):
227          if hasattr(currentScene, "mouse"):          if hasattr(currentScene, "mouse"):
228              currentScene.mouse(e)              currentScene.mouse(e)
229          # print "MOUSE: '%s'"%e          # print "MOUSE: '%s'"%e

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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