[wxpython-users] Advice on drawing shapes

Stef Mientki s.mientki at ru.nl
Mon Mar 31 10:21:54 PDT 2008


hi Stewart,

Stewart McLay wrote:
> Hello Everyone,
>
> I am thinking about creating a window with a wx.GraphicsContext. On 
> that window I want to be able to draw rectangle by left clicking the 
> mouse whilst on the window and and dragging the mouse. I want to be 
> able to see the rectangle grow from the origin of the click and remain 
> once the mouse button has been released. I think this looks achievable 
> in wxPython but I haven't seen any good examples in the demo 
> application that demonstrate how to do this kind of thing. Is this 
> possible to do in wxPython? and does anyone know where a good example 
> might be found?
looks like a typical job for for ogl (see the wxPython demo)
or even better ogl-like (or one of it's derivates).

cheers,
Stef



More information about the wxpython-users mailing list