/[gzz]/gzz/gzz/gfx/gl/debugswitches.py
ViewVC logotype

Diff of /gzz/gzz/gfx/gl/debugswitches.py

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

revision 1.3 by tjl, Wed Aug 21 07:12:43 2002 UTC revision 1.4 by tjl, Mon Sep 23 09:09:29 2002 UTC
# Line 5  from __future__ import nested_scopes Line 5  from __future__ import nested_scopes
5    
6  from java.awt import *  from java.awt import *
7  from pawt import GridBag  from pawt import GridBag
8  from gzz.gfx.gl import GZZGL  from gzz.gfx.gl import GL
9    
10  class DebugSwitches:  class DebugSwitches:
11      def __init__(self, on_initially = []):      def __init__(self, on_initially = []):
12          self.toggles = {}          self.toggles = {}
13          def toggler(str):          def toggler(str):
14              return lambda ev: self.toggle(str)              return lambda ev: self.toggle(str)
15          self.names = GZZGL.getDebugVarNames()          self.names = GL.getDebugVarNames()
16          self.frame = Frame("Gzz commander",          self.frame = Frame("Gzz commander",
17              windowClosing=lambda ev: self.frame.dispose())              windowClosing=lambda ev: self.frame.dispose())
18          g = GridBag(self.frame)          g = GridBag(self.frame)
# Line 32  class DebugSwitches: Line 32  class DebugSwitches:
32          print "Toggle",str          print "Toggle",str
33          val = self.toggles[str].getState()          val = self.toggles[str].getState()
34          print "new value:",val          print "new value:",val
35          GZZGL.setDebugVar(str, val)          GL.setDebugVar(str, val)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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