[wxpython-users] Advice on drawing shapes

Stewart McLay sam at roe.ac.uk
Mon Mar 31 07:52:11 PDT 2008


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?

Cheers,

Stewart


More information about the wxpython-users mailing list