diff --git a/wxPython/src/_gdicmn.i b/wxPython/src/_gdicmn.i index 87b2b5c900..1f3f6439dd 100644 --- a/wxPython/src/_gdicmn.i +++ b/wxPython/src/_gdicmn.i @@ -488,6 +488,9 @@ DocStr(wxRect, width and height properties. In wxPython most palces that expect a wx.Rect can also accept a (x,y,width,height) tuple.", ""); + +%typemap(in) wxRect*; + class wxRect { public: @@ -777,6 +780,9 @@ usually, but not necessarily, the larger one.", ""); %property(Empty, IsEmpty, doc="See `IsEmpty`"); }; +%apply wxRect& { wxRect* }; + + MustHaveApp(wxIntersectRect);