]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_toolbar.i
MemoryFSHandler_AddFile updates
[wxWidgets.git] / wxPython / src / _toolbar.i
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,