[wxPython] Re: Mouse events in an OGL application

..., but you need to use

       aShape =3D wxDrawnShape()
       aShape.SetX(200)
       aShape.SetY(200)
       aShape.DrawRectangle(wxRect(-50, -40, 100, 80))
       aShape.CalculateSize()

I've tested the above and it *seems* to work. But it feels like black =
magic. I'm sure someone who actually understands this better than me can =
provide an explanation of why it works...

Paul

Thanks Paul, in this way it works.
But if I have to draw an ellipse (using DrawEllipticArc) instead of a rectangle, should I use the same group of methods? Does this approach work for all kind of shapes I would like to draw?

Alban

···

_________________________________________________________________
Get a speedy connection with MSN Broadband.� Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp