/[gzz]/gzz/test/tools/gfx.py
ViewVC logotype

Diff of /gzz/test/tools/gfx.py

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

revision 1.7 by tjl, Tue Oct 29 15:35:51 2002 UTC revision 1.8 by tjl, Wed Oct 30 19:10:17 2002 UTC
# Line 78  def checkInterp(vs1, vs2, i, fract, cs, Line 78  def checkInterp(vs1, vs2, i, fract, cs,
78          if abs(dst[i]-dstlist[i]) > delta:          if abs(dst[i]-dstlist[i]) > delta:
79              raise str([srclist, dstlist, dst, i, dst[i], dstlist[i]])              raise str([srclist, dstlist, dst, i, dst[i], dstlist[i]])
80    
81    
82    class CellInBox_ConstFlat(gzz.view.CellInBox):
83        """A CellInBox that places white rectbgvobs of constant size.
84        """
85        bgv = gzz.vob.RectBgVob()
86        def __init__(self, w, h):
87            self.w = w
88            self.h = h
89            print "CBCF init"
90        def getSize(self, *args):
91            args[-1][0] = self.w
92            args[-1][1] = self.h
93            print "CBCF getsize",args
94        def place(self, cell, vs, box, context):
95            print "Place: ", box
96            vs.map.put(self.bgv, box.getUnitCoordsys())

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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