One more thought:

> first: I'm not sure I'd leverage the Canvas boudnign box to figure out
> where to put stuff, but rather, keep track of the coordinates of you
> objects yourself, so you can place things relative to other objects
> regardless of what else is on the canvas.

I still think it's best to think of the Canvas Bounding Box as
something for internal use. However, in this case, you are tryhing to
place somethign relative to a Group, so whay not use the Group
boudnign box?

        self.doUnitSingleBottle()
        BB = self.rackUnit.BoundingBox
        pr = FloatCanvas.Rectangle((BB.Right,BB.Bottom),
                                   (10, 18),
                                   FillColor="yellow")
        Canvas.AddObject(pr)

See my latest version of the code (enclosed)

-Chris


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]

Attachment: GroupDemo.py
Description: Binary data

_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to