X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/170acdc90e9f92f8b8120fa6c04acdbf45c89582..f62262aacfac8b03ad7b8aca946c4fd5717b6c2e:/wxPython/src/_pycontrol.i?ds=inline diff --git a/wxPython/src/_pycontrol.i b/wxPython/src/_pycontrol.i index bb543a1182..eb4a0acf0d 100644 --- a/wxPython/src/_pycontrol.i +++ b/wxPython/src/_pycontrol.i @@ -118,7 +118,7 @@ MustHaveApp(wxPyControl); class wxPyControl : public wxControl { public: - %pythonAppend wxPyControl "self._setOORInfo(self); self._setCallbackInfo(self, PyControl)" + %pythonAppend wxPyControl "self._setOORInfo(self);" setCallbackInfo(PyControl) %pythonAppend wxPyControl() "" wxPyControl(wxWindow* parent, const wxWindowID id=-1, @@ -132,6 +132,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);