]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid using the OOR typemap in the constructors
authorRobin Dunn <robin@alldunn.com>
Sat, 17 Jul 2004 22:51:01 +0000 (22:51 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 17 Jul 2004 22:51:01 +0000 (22:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

23 files changed:
wxPython/contrib/ogl/_oglbasic.i
wxPython/contrib/ogl/_oglcanvas.i
wxPython/contrib/ogl/_oglshapes.i
wxPython/src/_app.i
wxPython/src/_button.i
wxPython/src/_control.i
wxPython/src/_evthandler.i
wxPython/src/_mdi.i
wxPython/src/_menu.i
wxPython/src/_notebook.i
wxPython/src/_panel.i
wxPython/src/_statctrls.i
wxPython/src/_statusbar.i
wxPython/src/_textctrl.i
wxPython/src/_toolbar.i
wxPython/src/_toplvl.i
wxPython/src/_treectrl.i
wxPython/src/_validator.i
wxPython/src/_window.i
wxPython/src/grid.i
wxPython/src/html.i
wxPython/src/my_typemaps.i
wxPython/src/wizard.i

index 70c18ca92f6f981a6b879822fa63965bbbf4f7c3..df8052dff63facc5c2ca6fbd66d58ccd3a5d0551 100644 (file)
@@ -82,15 +82,18 @@ public:
 class wxPyShapeEvtHandler : public wxObject {
 public:
     %pythonAppend wxPyShapeEvtHandler "self._setOORandCallbackInfo(PyShapeEvtHandler)"
-    
+     %typemap(out) wxPyShapeEvtHandler*;    // turn off this typemap
+   
     wxPyShapeEvtHandler(wxPyShapeEvtHandler *prev = NULL,
                         wxPyShape *shape = NULL);
 
+    %typemap(out) wxPyShapeEvtHandler*      { $result = wxPyMake_wxShapeEvtHandler($1, $owner); }
+
+    
     void _setCallbackInfo(PyObject* self, PyObject* _class);
     %extend {
         void _setOORInfo(PyObject* _self) {
-            if (!self->GetClientObject())
-                self->SetClientObject(new wxPyOORClientData(_self));
+            self->SetClientObject(new wxPyOORClientData(_self));
         }
     }
     %pythoncode {
@@ -147,9 +150,12 @@ public:
 class wxPyShape : public wxPyShapeEvtHandler {
 public:
     %pythonAppend wxPyShape "self._setOORandCallbackInfo(PyShape)"
-    
+    %typemap(out) wxPyShape*;    // turn off this typemap
+
     wxPyShape(wxPyShapeCanvas *can = NULL);  
 
+    %typemap(out) wxPyShape*                { $result = wxPyMake_wxShapeEvtHandler($1, $owner); }
+
     void _setCallbackInfo(PyObject* self, PyObject* _class);
 
     void GetBoundingBoxMax(double *OUTPUT, double *OUTPUT);
index af80f9ad97a7f30d425522ac8cd24034dd48d414..50b7ca6f0ccddce38a5d21af7b6a2d7567416db3 100644 (file)
@@ -104,13 +104,16 @@ MustHaveApp(wxPyShapeCanvas);
 class wxPyShapeCanvas : public wxScrolledWindow {
 public:
     %pythonAppend wxPyShapeCanvas "self._setOORandCallbackInfo(PyShapeCanvas)"
-    
+    %typemap(out) wxPyShapeCanvas*;    // turn off this typemap
+
     wxPyShapeCanvas(wxWindow* parent = NULL, wxWindowID id = -1,
                     const wxPoint& pos = wxDefaultPosition,
                     const wxSize& size = wxDefaultSize,
                     long style = wxBORDER,
                     const wxString& name = wxPyShapeCanvasNameStr);
 
+    %typemap(out) wxPyShapeCanvas*          { $result = wxPyMake_wxObject($1, $owner); }
+    
     void _setCallbackInfo(PyObject* self, PyObject* _class);
     %pythoncode {
     def _setOORandCallbackInfo(self, _class):
index fb9bc951360ca2fdc6d1a1ea8cd4fa36f629e551..65aca874281d725fad488fa5ab69c27d89961c0e 100644 (file)
@@ -538,9 +538,12 @@ public:
 class wxPyDivisionShape : public wxPyCompositeShape {
 public:
     %pythonAppend wxPyDivisionShape "self._setOORandCallbackInfo(PyDivisionShape)"
+    %typemap(out) wxPyDivisionShape*;    // turn off this typemap
     
     wxPyDivisionShape();
 
+    %typemap(out) wxPyDivisionShape*        { $result = wxPyMake_wxShapeEvtHandler($1, $owner); }
+
     void _setCallbackInfo(PyObject* self, PyObject* _class);
 
     void AdjustBottom(double bottom, bool test);
index fc25d1c8c1e79138f3e9139782349a887c243357..549ca80c44771759e7174be2bd8cfa31117195e9 100644 (file)
@@ -50,6 +50,7 @@ public:
     %pythonAppend wxPyApp
        "self._setCallbackInfo(self, PyApp)
         self._setOORInfo(self)";
+    %typemap(out) wxPyApp*;    // turn off this typemap
 
     DocStr(wxPyApp,
            "Create a new application object, starting the bootstrap process.", "");
@@ -62,6 +63,10 @@ public:
 
     ~wxPyApp();
 
+    // Turn it back on again
+    %typemap(out) wxPyApp* { $result = wxPyMake_wxObject($1, $owner); }
+
+
     void _setCallbackInfo(PyObject* self, PyObject* _class);
 
 
index de03872ce9eb0cf0a3c10b843db7792c45f2cc1b..f09a479885652092516d3094185b93d5b6cec50f 100644 (file)
@@ -65,6 +65,7 @@ class wxButton : public wxControl
 public:
     %pythonAppend wxButton         "self._setOORInfo(self)"
     %pythonAppend wxButton()       ""
+    %typemap(out) wxButton*;    // turn off this typemap
 
 
     DocCtorStr(
@@ -82,6 +83,10 @@ public:
         "Precreate a Button for 2-phase creation.", "",
         PreButton);
 
+    // Turn it back on again
+    %typemap(out) wxButton* { $result = wxPyMake_wxObject($1, $owner); }
+
+
     DocDeclStr(
         bool , Create(wxWindow* parent, wxWindowID id=-1,
                       const wxString& label=wxPyEmptyString,
@@ -154,6 +159,7 @@ class wxBitmapButton : public wxButton
 public:
     %pythonAppend wxBitmapButton         "self._setOORInfo(self)"
     %pythonAppend wxBitmapButton()       ""
+    %typemap(out) wxBitmapButton*;    // turn off this typemap
 
     DocCtorStr(
         wxBitmapButton(wxWindow* parent, wxWindowID id=-1,
@@ -170,6 +176,10 @@ public:
         "Precreate a BitmapButton for 2-phase creation.", "",
         PreBitmapButton);
 
+    // Turn it back on again
+    %typemap(out) wxBitmapButton* { $result = wxPyMake_wxObject($1, $owner); }
+
+
     DocDeclStr(
         bool , Create(wxWindow* parent, wxWindowID id=-1,
                       const wxBitmap& bitmap = wxNullBitmap,
index a957574d2adb476ca92abb41f76c4d3dc88202bc..c33e74a29ce362ecfb06eba255547767882f57ca 100644 (file)
@@ -34,6 +34,7 @@ class wxControl : public wxWindow
 public:
     %pythonAppend wxControl         "self._setOORInfo(self)"
     %pythonAppend wxControl()       ""
+    %typemap(out) wxControl*;    // turn off this typemap
 
     DocCtorStr(
         wxControl(wxWindow *parent,
@@ -51,6 +52,10 @@ __init__ as a plain old wx.Control is not very useful.", "");
         "Precreate a Control control for 2-phase creation", "",
         PreControl);
 
+    // Turn it back on again
+    %typemap(out) wxControl* { $result = wxPyMake_wxObject($1, $owner); }
+
+
     DocDeclStr(
         bool , Create(wxWindow *parent,
                       wxWindowID id=-1,
index 164eb60d41a013355554e0d8c5548efb215175bc..5cbe3734c961b6cf15c4c909b88ead803e563cbc 100644 (file)
 // wxEvtHandler: the base class for all objects handling wxWindows events
 class wxEvtHandler : public wxObject {
 public:
+    // turn off this typemap
+    %typemap(out) wxEvtHandler*;    
+
     wxEvtHandler();
 
+    // Turn it back on again
+    %typemap(out) wxEvtHandler* { $result = wxPyMake_wxObject($1, $owner); }
+
     wxEvtHandler* GetNextHandler();
     wxEvtHandler* GetPreviousHandler();
     void SetNextHandler(wxEvtHandler* handler);
@@ -69,8 +75,7 @@ public:
     %extend {
         void _setOORInfo(PyObject* _self) {
             if (_self && _self != Py_None) {
-                if (!self->GetClientObject())
-                    self->SetClientObject(new wxPyOORClientData(_self));
+                self->SetClientObject(new wxPyOORClientData(_self));
             }
             else {
                 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
index dab48d326d5b471328536239e24d080d9db101a0..f5607a591cdfa85a0fab99ae1a7a70376ceaca12 100644 (file)
@@ -86,6 +86,7 @@ class wxMDIChildFrame : public wxFrame {
 public:
     %pythonAppend wxMDIChildFrame         "self._setOORInfo(self)"
     %pythonAppend wxMDIChildFrame()       ""
+    %typemap(out) wxMDIChildFrame*;    // turn off this typemap
 
     wxMDIChildFrame(wxMDIParentFrame* parent,
                     const wxWindowID id=-1,
@@ -96,6 +97,9 @@ public:
                     const wxString& name = wxPyFrameNameStr);
     %name(PreMDIChildFrame)wxMDIChildFrame();
 
+    // Turn it back on again
+    %typemap(out) wxMDIChildFrame* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxMDIParentFrame* parent,
                     const wxWindowID id=-1,
                     const wxString& title = wxPyEmptyString,
@@ -119,10 +123,14 @@ class wxMDIClientWindow : public wxWindow {
 public:
     %pythonAppend wxMDIClientWindow         "self._setOORInfo(self)"
     %pythonAppend wxMDIClientWindow()       ""
+    %typemap(out) wxMDIClientWindow*;    // turn off this typemap
 
     wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0);
     %name(PreMDIClientWindow)wxMDIClientWindow();
 
+    // Turn it back on again
+    %typemap(out) wxMDIClientWindow* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxMDIParentFrame* parent, long style = 0);
 };
 
index 59fb4736457184d2c9e5535c082504139f3e5b9e..f7584ed5341590f902cbddc21b24762f4a7e03ed 100644 (file)
@@ -23,9 +23,14 @@ class wxMenu : public wxEvtHandler
 {
 public:
     %pythonAppend wxMenu         "self._setOORInfo(self)"
+    %typemap(out) wxMenu*;    // turn off this typemap
+
     wxMenu(const wxString& title = wxPyEmptyString, long style = 0);
 
+    // Turn it back on again
+    %typemap(out) wxMenu* { $result = wxPyMake_wxObject($1, $owner); }
 
+    
     // append any kind of item (normal/check/radio/separator)
     wxMenuItem* Append(int id,
                        const wxString& text,
@@ -211,8 +216,12 @@ class wxMenuBar : public wxWindow
 {
 public:
     %pythonAppend wxMenuBar         "self._setOORInfo(self)"
+    %typemap(out) wxMenuBar*;    // turn off this typemap
+
     wxMenuBar(long style = 0);
 
+    // Turn it back on again
+    %typemap(out) wxMenuBar* { $result = wxPyMake_wxObject($1, $owner); }
 
     // append a menu to the end of menubar, return True if ok
     virtual bool Append(wxMenu *menu, const wxString& title);
index ab17747cd7436fe87b5b74c5b07b9f664b0469da..e058b6e9bf0ed439abdba462fd5d3aacf81463c0 100644 (file)
@@ -168,6 +168,7 @@ class wxNotebook : public wxBookCtrl {
 public:
     %pythonAppend wxNotebook         "self._setOORInfo(self)"
     %pythonAppend wxNotebook()       ""
+    %typemap(out) wxNotebook*;    // turn off this typemap
 
     wxNotebook(wxWindow *parent,
                wxWindowID id=-1,
@@ -177,6 +178,9 @@ public:
                const wxString& name = wxPyNOTEBOOK_NAME);
     %name(PreNotebook)wxNotebook();
 
+    // Turn it back on again
+    %typemap(out) wxNotebook* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow *parent,
                wxWindowID id=-1,
                const wxPoint& pos = wxDefaultPosition,
index 180bd8c8ed950f32fe2b0fb4c6ae0b63b5b9f76d..de57b04fcdc16924679022f7107ef3467279ab92 100644 (file)
@@ -29,6 +29,7 @@ class wxPanel : public wxWindow
 public:
     %pythonAppend wxPanel         "self._setOORInfo(self)"
     %pythonAppend wxPanel()       ""
+    %typemap(out) wxPanel*;    // turn off this typemap
 
     wxPanel(wxWindow* parent,
             const wxWindowID id=-1,
@@ -38,6 +39,9 @@ public:
             const wxString& name = wxPyPanelNameStr);
     %name(PrePanel)wxPanel();
 
+    // Turn it back on again
+    %typemap(out) wxPanel* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow* parent,
                 const wxWindowID id=-1,
                 const wxPoint& pos = wxDefaultPosition,
@@ -66,6 +70,7 @@ class wxScrolledWindow : public wxPanel
 public:
     %pythonAppend wxScrolledWindow         "self._setOORInfo(self)"
     %pythonAppend wxScrolledWindow()       ""
+    %typemap(out) wxScrolledWindow*;    // turn off this typemap
 
     wxScrolledWindow(wxWindow* parent,
                      const wxWindowID id = -1,
@@ -75,6 +80,9 @@ public:
                      const wxString& name = wxPyPanelNameStr);
     %name(PreScrolledWindow)wxScrolledWindow();
 
+    // Turn it back on again
+    %typemap(out) wxScrolledWindow* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow* parent,
                 const wxWindowID id = -1,
                 const wxPoint& pos = wxDefaultPosition,
index 3c15670aaf0a69274a839657d3b10ec08a0ba42b..9c2df37ac931eb70fa420144a811f454fcf4083b 100644 (file)
@@ -29,6 +29,7 @@ class wxStaticBox : public wxControl {
 public:
     %pythonAppend wxStaticBox         "self._setOORInfo(self)"
     %pythonAppend wxStaticBox()       ""
+    %typemap(out) wxStaticBox*;    // turn off this typemap
 
     wxStaticBox(wxWindow* parent, wxWindowID id=-1,
                 const wxString& label = wxPyEmptyString,
@@ -38,6 +39,9 @@ public:
                 const wxString& name = wxPyStaticBoxNameStr);
     %name(PreStaticBox)wxStaticBox();
 
+    // Turn it back on again
+    %typemap(out) wxStaticBox* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow* parent, wxWindowID id=-1,
                 const wxString& label = wxPyEmptyString,
                 const wxPoint& pos = wxDefaultPosition,
index 0fc21a1f03b88855b950690f45ccacaaf8add9dc..50013980d581f2457f1caaf0b07966fa8d9c0eb3 100644 (file)
@@ -30,12 +30,16 @@ class wxStatusBar : public wxWindow
 public:
     %pythonAppend wxStatusBar         "self._setOORInfo(self)"
     %pythonAppend wxStatusBar()       ""
+    %typemap(out) wxStatusBar*;    // turn off this typemap
     
     wxStatusBar(wxWindow* parent, wxWindowID id = -1,
                 long style = wxDEFAULT_STATUSBAR_STYLE,
                 const wxString& name = wxPyStatusLineNameStr);
     %name(PreStatusBar)wxStatusBar();
 
+    // Turn it back on again
+    %typemap(out) wxStatusBar* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow* parent, wxWindowID id=-1,
                 long style = wxST_SIZEGRIP,
                 const wxString& name = wxPyStatusLineNameStr);
index a12f5b6c6edcb51d1d02c3dddcb358f0011ddaf4..f1e89934f5653f56742034d248e1c2084481d5f1 100644 (file)
@@ -165,6 +165,7 @@ class wxTextCtrl : public wxControl
 public:
     %pythonAppend wxTextCtrl         "self._setOORInfo(self)"
     %pythonAppend wxTextCtrl()       ""
+    %typemap(out) wxTextCtrl*;    // turn off this typemap
 
     wxTextCtrl(wxWindow* parent, wxWindowID id=-1,
                const wxString& value = wxPyEmptyString,
@@ -175,6 +176,9 @@ public:
                const wxString& name = wxPyTextCtrlNameStr);
     %name(PreTextCtrl)wxTextCtrl();
 
+    // Turn it back on again
+    %typemap(out) wxTextCtrl* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow* parent, wxWindowID id=-1,
                const wxString& value = wxPyEmptyString,
                const wxPoint& pos = wxDefaultPosition,
index c7d22e0b2c94942534ad9debc65091d5378c536f..f3d0bb52f23709a37a7d2c38eb38b57a786b7a58 100644 (file)
@@ -391,7 +391,8 @@ class wxToolBar : public wxToolBarBase {
 public:
     %pythonAppend wxToolBar         "self._setOORInfo(self)"
     %pythonAppend wxToolBar()       ""
-    
+    %typemap(out) wxToolBar*;    // turn off this typemap
     wxToolBar(wxWindow *parent,
               wxWindowID id=-1,
               const wxPoint& pos = wxDefaultPosition,
@@ -400,6 +401,9 @@ public:
               const wxString& name = wxPyToolBarNameStr);
     %name(PreToolBar)wxToolBar();
 
+    // Turn it back on again
+    %typemap(out) wxToolBar* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow *parent,
               wxWindowID id=-1,
               const wxPoint& pos = wxDefaultPosition,
index 261d41c0410dab16c987ee42a4e0a10bd8627e9b..01f14c5b2750a014823413e53be43badf4ff05d3 100644 (file)
@@ -151,6 +151,7 @@ class wxFrame : public wxTopLevelWindow {
 public:
     %pythonAppend wxFrame         "self._setOORInfo(self)"
     %pythonAppend wxFrame()       ""
+    %typemap(out) wxFrame*;    // turn off this typemap
 
     wxFrame(wxWindow* parent, const wxWindowID id=-1,
             const wxString& title = wxPyEmptyString,
@@ -160,6 +161,10 @@ public:
             const wxString& name = wxPyFrameNameStr);
     %name(PreFrame)wxFrame();
 
+    // Turn it back on again
+    %typemap(out) wxFrame* { $result = wxPyMake_wxObject($1, $owner); }
+
+    
     bool Create(wxWindow* parent, const wxWindowID id=-1,
                 const wxString& title = wxPyEmptyString,
                 const wxPoint& pos = wxDefaultPosition,
@@ -265,6 +270,7 @@ class wxDialog : public wxTopLevelWindow {
 public:
     %pythonAppend wxDialog   "self._setOORInfo(self)"
     %pythonAppend wxDialog() ""
+    %typemap(out) wxDialog*;    // turn off this typemap
 
     wxDialog(wxWindow* parent,
              const wxWindowID id=-1,
@@ -275,6 +281,9 @@ public:
              const wxString& name = wxPyDialogNameStr);
     %name(PreDialog)wxDialog();
 
+    // Turn it back on again
+    %typemap(out) wxDialog* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow* parent,
                 const wxWindowID id=-1,
                 const wxString& title = wxPyEmptyString,
index d1509302d9c115b19baf5351ca0a27e174afd681..2e7da38712aa2560a23d87ed16260ee48ce2374d 100644 (file)
@@ -315,6 +315,7 @@ MustHaveApp(wxPyTreeCtrl);
 public:
     %pythonAppend wxPyTreeCtrl         "self._setOORInfo(self);self._setCallbackInfo(self, TreeCtrl)"
     %pythonAppend wxPyTreeCtrl()       ""
+    %typemap(out) wxPyTreeCtrl*;    // turn off this typemap
    
     wxPyTreeCtrl(wxWindow *parent, wxWindowID id = -1,
                  const wxPoint& pos = wxDefaultPosition,
@@ -324,6 +325,9 @@ public:
                  const wxString& name = wxPyTreeCtrlNameStr);
     %name(PreTreeCtrl)wxPyTreeCtrl();
 
+    // Turn it back on again
+    %typemap(out) wxPyTreeCtrl* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow *parent, wxWindowID id = -1,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
index 2951244f365c354b9123e3da686fedfc82be83ed..e68789f9e96d02102695601b70d93465fa518f8f 100644 (file)
@@ -33,10 +33,15 @@ class wxValidator : public wxEvtHandler
 {
 public:
     %pythonAppend wxValidator "self._setOORInfo(self)"
+    %typemap(out) wxValidator*;    // turn off this typemap
+
     wxValidator();
     //~wxValidator();
 
+    // Turn it back on again
+    %typemap(out) wxValidator* { $result = wxPyMake_wxObject($1, $owner); }
 
+    
     // Make a clone of this validator (or return NULL)
     wxValidator* Clone();
 
index 7825ecd03bc7c2d2c790259b6004139b64114c95..b027f9f3b986cb966578f638e59cac42cbea58a2 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,
index 771190095b997263817203188b7d2c097ca65cac..9a1d2909f7ff8952f6c7b9d200091ea540722dfc 100644 (file)
@@ -1592,6 +1592,7 @@ class wxGrid : public wxScrolledWindow
 {
 public:
     %pythonAppend wxGrid "self._setOORInfo(self)"
+    %typemap(out) wxGrid*;    // turn off this typemap
 
     wxGrid( wxWindow *parent,
             wxWindowID id=-1,
@@ -1602,6 +1603,10 @@ public:
 
     %name(PreGrid) wxGrid();
 
+    
+    // Turn it back on again
+    %typemap(out) wxGrid* { $result = wxPyMake_wxObject($1, $owner); }
+
 
     bool Create( wxWindow *parent,
                  wxWindowID id=-1,
index 6bde2f4c9797710c8657ddea2cf22a643681fdf1..403878e34de989f73edc3f2b5851f6afd9680898 100644 (file)
@@ -791,6 +791,7 @@ MustHaveApp(wxPyHtmlWindow);
 public:
     %pythonAppend wxPyHtmlWindow      "self._setCallbackInfo(self, HtmlWindow); self._setOORInfo(self)"
     %pythonAppend wxPyHtmlWindow()    ""
+    %typemap(out) wxPyHtmlWindow*;    // turn off this typemap
     
     wxPyHtmlWindow(wxWindow *parent, int id = -1,
                  const wxPoint& pos = wxDefaultPosition,
@@ -799,6 +800,9 @@ public:
                  const wxString& name = wxPyHtmlWindowNameStr);
     %name(PreHtmlWindow)wxPyHtmlWindow();
 
+    // Turn it back on again
+    %typemap(out) wxPyHtmlWindow* { $result = wxPyMake_wxObject($1, $owner); }
+
     bool Create(wxWindow *parent, int id = -1,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
index cd0d21826db66deddd89cd77ba1a8022c576ae0f..d9ce9153bf02b9488171a8dd96b09dfe631e9ab3 100644 (file)
@@ -340,6 +340,9 @@ SWIG_AsDouble(PyObject *obj)
 // to the real derived type, if possible.  See wxPyMake_wxObject in
 // helpers.cpp
 
+// NOTE: For those classes that also call _setOORInfo these typemaps should be
+// disabled for the constructor.
+
 %typemap(out) wxEvtHandler*             { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxMenu*                   { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxValidator*              { $result = wxPyMake_wxObject($1, $owner); }
@@ -349,7 +352,6 @@ SWIG_AsDouble(PyObject *obj)
 %typemap(out) wxDC*                     { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxFSFile*                 { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxFileSystem*             { $result = wxPyMake_wxObject($1, $owner); }
-%typemap(out) wxGridTableBase*          { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxImageList*              { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxListItem*               { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxMenuItem*               { $result = wxPyMake_wxObject($1, $owner); }
@@ -365,7 +367,7 @@ SWIG_AsDouble(PyObject *obj)
 %typemap(out) wxControl*                { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxFrame*                  { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxGrid*                   { $result = wxPyMake_wxObject($1, $owner); }
-%typemap(out) wxListCtrl*               { $result = wxPyMake_wxObject($1, $owner); }
+//%typemap(out) wxListCtrl*               { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxMDIChildFrame*          { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxMDIClientWindow*        { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxMenuBar*                { $result = wxPyMake_wxObject($1, $owner); }
@@ -375,12 +377,12 @@ SWIG_AsDouble(PyObject *obj)
 %typemap(out) wxTextCtrl*               { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxToolBar*                { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxToolBarBase*            { $result = wxPyMake_wxObject($1, $owner); }
-%typemap(out) wxTreeCtrl*               { $result = wxPyMake_wxObject($1, $owner); }
+//%typemap(out) wxTreeCtrl*               { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxPyTreeCtrl*             { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxWindow*                 { $result = wxPyMake_wxObject($1, $owner); }
-%typemap(out) wxHtmlWindow*             { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxPyHtmlWindow*           { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxWizardPage*             { $result = wxPyMake_wxObject($1, $owner); }
+%typemap(out) wxPyWizardPage*           { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxPanel*                  { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxDialog*                 { $result = wxPyMake_wxObject($1, $owner); }
 %typemap(out) wxScrolledWindow*         { $result = wxPyMake_wxObject($1, $owner); }
index da7624931fe5f195d387d1794a21f8c19bdeb2e7..df3bf2130a3d4c542645ee6acb8755c512f0e8f0 100644 (file)
@@ -207,6 +207,7 @@ public:
 
     %pythonAppend wxPyWizardPage   "self._setCallbackInfo(self, PyWizardPage);self._setOORInfo(self)"
     %pythonAppend wxPyWizardPage() ""
+    %typemap(out) wxPyWizardPage*;    // turn off this typemap
     
     // ctor accepts an optional bitmap which will be used for this page instead
     // of the default one for this wizard (should be of the same size). Notice
@@ -225,6 +226,9 @@ public:
 
     %name(PrePyWizardPage)wxPyWizardPage();
 
+    // Turn it back on again
+    %typemap(out) wxPyWizardPage* { $result = wxPyMake_wxObject($1, $owner); }
+
     %extend {
         bool Create(wxWizard *parent,
                     const wxBitmap& bitmap = wxNullBitmap,