X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d55734102e25f5d11bcb4bbac39083320afd3699..ee45c548e61fa0ce1f8adbcf29d7678769f2c0ed:/wxPython/src/_toolbar.i diff --git a/wxPython/src/_toolbar.i b/wxPython/src/_toolbar.i index c7d22e0b2c..bb0a76de5d 100644 --- a/wxPython/src/_toolbar.i +++ b/wxPython/src/_toolbar.i @@ -303,8 +303,8 @@ public: shortHelp, longHelp, clientData) } - %name(AddToolItem) wxToolBarToolBase *AddTool (wxToolBarToolBase *tool); - %name(InsertToolItem) wxToolBarToolBase *InsertTool (size_t pos, wxToolBarToolBase *tool); + %Rename(AddToolItem, wxToolBarToolBase*, AddTool (wxToolBarToolBase *tool)); + %Rename(InsertToolItem, wxToolBarToolBase*, InsertTool (size_t pos, wxToolBarToolBase *tool)); wxToolBarToolBase *AddControl(wxControl *control); wxToolBarToolBase *InsertControl(size_t pos, wxControl *control); @@ -353,7 +353,7 @@ public: void SetToolLongHelp(int id, const wxString& helpString); wxString GetToolLongHelp(int id); - %name(SetMarginsXY) void SetMargins(int x, int y); + %Rename(SetMarginsXY, void, SetMargins(int x, int y)); void SetMargins(const wxSize& size); void SetToolPacking(int packing); void SetToolSeparation(int separation); @@ -391,14 +391,18 @@ 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, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString& name = wxPyToolBarNameStr); - %name(PreToolBar)wxToolBar(); + %RenameCtor(PreToolBar, wxToolBar()); + + // Turn it back on again + %typemap(out) wxToolBar* { $result = wxPyMake_wxObject($1, $owner); } bool Create(wxWindow *parent, wxWindowID id=-1,