]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_window.i
reSWIGged
[wxWidgets.git] / wxPython / src / _window.i
index 7825ecd03bc7c2d2c790259b6004139b64114c95..be6b0561d01a6a3d865aa9797c75aa3408532438 100644 (file)
@@ -199,6 +199,7 @@ class wxWindow : public wxEvtHandler
 public:
     %pythonAppend wxWindow         "self._setOORInfo(self)"
     %pythonAppend wxWindow()       ""
+    %typemap(out) wxWindow*;    // turn off this typemap
 
     DocCtorStr(
         wxWindow(wxWindow* parent, const wxWindowID id=-1,
@@ -213,7 +214,10 @@ public:
         "Precreate a Window for 2-phase creation.", "",
         PreWindow);
     
+    // Turn it back on again
+    %typemap(out) wxWindow* { $result = wxPyMake_wxObject($1, $owner); }
 
+    
     DocDeclStr(
         bool , Create(wxWindow* parent, const wxWindowID id=-1,
                 const wxPoint& pos = wxDefaultPosition,
@@ -584,7 +588,6 @@ anything if there are no subwindows.", "");
     
 
     
-    %nokwargs SetSizeHints;
     DocStr(SetSizeHints,
         "Allows specification of minimum and maximum window sizes, and window
 size increments. If a pair of values is not set (or set to -1), the
@@ -597,24 +600,25 @@ The resizing increments are only significant under Motif or Xt.", "
 
 :see: `GetMinSize`, `GetMaxSize`, `SetMinSize`, `SetMaxSize`
 ");
-    void SetSizeHints( const wxSize& minSize,
-                       const wxSize& maxSize=wxDefaultSize,
-                       const wxSize& incSize=wxDefaultSize);
     virtual void SetSizeHints( int minW, int minH,
                                int maxW = -1, int maxH = -1,
                                int incW = -1, int incH = -1 );
+    %name(SetSizeHintsSz) void SetSizeHints( const wxSize& minSize,
+                                             const wxSize& maxSize=wxDefaultSize,
+                                             const wxSize& incSize=wxDefaultSize);
 
     
-    %nokwargs SetVirtualSizeHints;
     DocStr(SetVirtualSizeHints,
         "Allows specification of minimum and maximum virtual window sizes. If a
 pair of values is not set (or set to -1), the default values will be
 used.  If this function is called, the user will not be able to size
 the virtual area of the window outside the given bounds.", "");
-    void SetVirtualSizeHints( const wxSize& minSize,
-                              const wxSize& maxSize=wxDefaultSize);
     virtual void SetVirtualSizeHints( int minW, int minH,
                                       int maxW = -1, int maxH = -1 );
+    %name(SetVirtualSizeHintsSz)void SetVirtualSizeHints(
+        const wxSize& minSize, const wxSize& maxSize=wxDefaultSize);
+
+
     
     DocDeclStr(
         virtual wxSize , GetMaxSize() const,