From: Andre W. <wo...@us...> - 2004-08-24 06:18:27
|
Hi, On 23.08.04, Thorbjoern M. Pedersen wrote: > I would like to manipulate the bbox of a allready defined canvas, but I don't > know how to do it. To be more explicit: I would like to combine several > canvases into one which bbox I subsequently modify. One possibility is to overwrite the canvas bbox method to return whatever *you* want: class mycanvas(canvas.canvas): def setbbox(self, bbox): self.mybbox = bbox def bbox(self): return self.mybbox I haven't tried this code right now, but I remember that I did a similar trick myself before. Hope it helps for you as well ... André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ |