On Nov 21, 2010, at 5:50 PM, Ricardo Araoz wrote:

> Couldn't he use the getPositionInSizer() method of the dImage's
> ControllingSizer() (or sizer() or ControllingSizerItem()? confused by so
> many options) to get the absolute position and from there calculate the
> absolute position of the marker image?

        getPositionIsSizer() returns the index of the item in a 1D sizer, or 
the (row,col) tuple of an item in a 2D sizer. It doesn't return the pixel 
position.

        There are a lot of choices for determining an object's location, 
relative to many reference points:

formCoordinates(): relative to the object's form
containerCoordinates(): relative to the object's container
objectCoordinates(): relative to an object
absoluteCoordinates(): relative to the screen
relativeCoordinates(): screen coords. relative to object

        Look through the docstrings for these methods in dPemMixin.py for 
explanations as to how each of these is used.



-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to