[wxPython-users] Alternate constructors for wxRegion?

Robin Dunn robin at alldunn.com
Tue May 29 21:36:28 PDT 2007


Daniel B. Koch wrote:
> Is there any way to generate a non-rectangular wx.Region in wxPython? 
> The one I'm after in wxWidgets is this one:
> 
> wxRegion(size_t n, const wxPoint *points, int fillStyle = wxWINDING_RULE)
> 
> Constructs a region corresponding to the polygon made of n points in the 
> provided array. fillStyle parameter may have values wxWINDING_RULE or 
> wxODDEVEN_RULE.

wx.RegionFromPoints(points_list, fillStyle = wx.WINDING_RULE)


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list