X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/170acdc90e9f92f8b8120fa6c04acdbf45c89582..bb596005f5dc9978dc1866686534dd9b8fac5e30:/wxPython/src/_pywindows.i diff --git a/wxPython/src/_pywindows.i b/wxPython/src/_pywindows.i index 1305baebd3..3dfc58acab 100644 --- a/wxPython/src/_pywindows.i +++ b/wxPython/src/_pywindows.i @@ -146,7 +146,7 @@ MustHaveApp(wxPyWindow); class wxPyWindow : public wxWindow { public: - %pythonAppend wxPyWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)" + %pythonAppend wxPyWindow "self._setOORInfo(self);" setCallbackInfo(PyWindow) %pythonAppend wxPyWindow() "" wxPyWindow(wxWindow* parent, const wxWindowID id=-1, @@ -159,6 +159,7 @@ public: void _setCallbackInfo(PyObject* self, PyObject* _class); + %pythoncode { SetBestSize = wx.Window.SetInitialSize } bool DoEraseBackground(wxDC* dc); void DoMoveWindow(int x, int y, int width, int height); @@ -327,7 +328,7 @@ MustHaveApp(wxPyPanel); class wxPyPanel : public wxPanel { public: - %pythonAppend wxPyPanel "self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)" + %pythonAppend wxPyPanel "self._setOORInfo(self);" setCallbackInfo(PyPanel) %pythonAppend wxPyPanel() "" wxPyPanel(wxWindow* parent, const wxWindowID id=-1, @@ -340,6 +341,7 @@ public: void _setCallbackInfo(PyObject* self, PyObject* _class); + %pythoncode { SetBestSize = wx.Window.SetInitialSize } bool DoEraseBackground(wxDC* dc); void DoMoveWindow(int x, int y, int width, int height); @@ -500,7 +502,7 @@ MustHaveApp(wxPyScrolledWindow); class wxPyScrolledWindow : public wxScrolledWindow { public: - %pythonAppend wxPyScrolledWindow "self._setOORInfo(self); self._setCallbackInfo(self, PyScrolledWindow)" + %pythonAppend wxPyScrolledWindow "self._setOORInfo(self);" setCallbackInfo(PyScrolledWindow) %pythonAppend wxPyScrolledWindow() "" wxPyScrolledWindow(wxWindow* parent, const wxWindowID id=-1, @@ -513,6 +515,7 @@ public: void _setCallbackInfo(PyObject* self, PyObject* _class); + %pythoncode { SetBestSize = wx.Window.SetInitialSize } bool DoEraseBackground(wxDC* dc); void DoMoveWindow(int x, int y, int width, int height);