From: Freyland Manne [mailto:manne.freyland@accalon.se]
Freyland Manne wrote:
> Shouldn't wxRegion.Intersect() work with an region as an argument ?Robin Dunn wrote:
> There is a IntersectRegion method that does.Where do we find information about the IntersectRegion method ?
Well, it is another incompletness of wxWindows doc, I suppose. wxWindows
has 3 different methods:
bool Intersect(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
bool Intersect(const wxRect& rect)
bool Intersect(const wxRegion& region)
Because Python does not have polymorphism (well, it has actually via
dynamic typing), the usual wxPython strategy as far as I know is to
implement three methods with _different_ names, Intersect, IntersectRect
and IntersectRegion in that case (you can find them via
dir(wxPython.wx.wxRegion)). wxWindows doc _often_ says about such
methods in other places (help for wxListCtrl.InsertItem for example),
but not in the this one.
Sincerely Yours,
Victor.