X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..4263de1e0586d20cb49d0dde23f0d227c5ef25cb:/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(); } }; %}