X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..3c8ad70ad4de074ff95b5e3629ebc272551921c0:/wxPython/src/_popupwin.i diff --git a/wxPython/src/_popupwin.i b/wxPython/src/_popupwin.i index bf38236452..38ae99eda9 100644 --- a/wxPython/src/_popupwin.i +++ b/wxPython/src/_popupwin.i @@ -28,8 +28,8 @@ // combobox popups and such. class wxPopupWindow : public wxWindow { public: - %addtofunc wxPopupWindow "self._setOORInfo(self)" - %addtofunc wxPopupWindow() "" + %pythonAppend wxPopupWindow "self._setOORInfo(self)" + %pythonAppend wxPopupWindow() "" wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE); %name(PrePopupWindow)wxPopupWindow(); @@ -79,8 +79,8 @@ IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismis %name(PopupTransientWindow) class wxPyPopupTransientWindow : public wxPopupWindow { public: - %addtofunc wxPyPopupTransientWindow "self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow)" - %addtofunc wxPyPopupTransientWindow() "" + %pythonAppend wxPyPopupTransientWindow "self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow)" + %pythonAppend wxPyPopupTransientWindow() "" wxPyPopupTransientWindow(wxWindow *parent, int style = wxBORDER_NONE); %name(PrePopupTransientWindow)wxPyPopupTransientWindow(); @@ -103,15 +103,15 @@ public: %{ class wxPopupWindow : public wxWindow { public: - wxPopupWindow(wxWindow *, int) { PyErr_SetNone(PyExc_NotImplementedError); } - wxPopupWindow() { PyErr_SetNone(PyExc_NotImplementedError); } + wxPopupWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } + wxPopupWindow() { wxPyRaiseNotImplemented(); } }; class wxPyPopupTransientWindow : public wxPopupWindow { public: - wxPyPopupTransientWindow(wxWindow *, int) { PyErr_SetNone(PyExc_NotImplementedError); } - wxPyPopupTransientWindow() { PyErr_SetNone(PyExc_NotImplementedError); } + wxPyPopupTransientWindow(wxWindow *, int) { wxPyRaiseNotImplemented(); } + wxPyPopupTransientWindow() { wxPyRaiseNotImplemented(); } }; %}