[wxpython-users] Advice on drawing shapes

Christopher Barker Chris.Barker at noaa.gov
Mon Mar 31 09:45:12 PDT 2008


Stewart McLay wrote:
> 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.

You might want to check out wx.lib.floatcanvas:

http://morticia.cs.dal.ca/FloatCanvas/

In particular, the DrawRect Demo in the SVN repository:

http://svn.wxwidgets.org/viewvc/wx/wxPython/3rdParty/FloatCanvas/Demos/DrawRect.py?view=markup

-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

Chris.Barker at noaa.gov


More information about the wxpython-users mailing list