Avoid using the OOR typemap in the constructors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user