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()) |