X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7a014180017908d32f0af32ebfa140fdc82b390..6a6c9417a880900ac40ce031d2aa4a19658171e9:/wxPython/src/_pycontrol.i diff --git a/wxPython/src/_pycontrol.i b/wxPython/src/_pycontrol.i index a9ad85b4d9..eb4a0acf0d 100644 --- a/wxPython/src/_pycontrol.i +++ b/wxPython/src/_pycontrol.i @@ -34,7 +34,6 @@ public: const wxString& name = wxPyControlNameStr) : wxControl(parent, id, pos, size, style, validator, name) {} - void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } bool DoEraseBackground(wxDC* dc) { #ifdef __WXMSW__ @@ -119,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, @@ -133,7 +132,7 @@ public: void _setCallbackInfo(PyObject* self, PyObject* _class); - void SetBestSize(const wxSize& size); + %pythoncode { SetBestSize = wx.Window.SetInitialSize } bool DoEraseBackground(wxDC* dc); void DoMoveWindow(int x, int y, int width, int height);