X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7a014180017908d32f0af32ebfa140fdc82b390..2bd162773db825bb93fba4333210c5cdc5c930da:/wxPython/src/_pywindows.i diff --git a/wxPython/src/_pywindows.i b/wxPython/src/_pywindows.i index 9b9a06188d..3dfc58acab 100644 --- a/wxPython/src/_pywindows.i +++ b/wxPython/src/_pywindows.i @@ -62,7 +62,6 @@ public: const wxString& name = wxPyPanelNameStr) : wxWindow(parent, id, pos, size, style, name) {} - void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } bool DoEraseBackground(wxDC* dc) { #ifdef __WXMSW__ @@ -147,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, @@ -160,7 +159,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); @@ -245,7 +244,6 @@ public: const wxString& name = wxPyPanelNameStr) : wxPanel(parent, id, pos, size, style, name) {} - void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } bool DoEraseBackground(wxDC* dc) { #ifdef __WXMSW__ return wxWindow::DoEraseBackground(dc->GetHDC()); @@ -330,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, @@ -343,7 +341,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); @@ -421,7 +419,6 @@ public: const wxString& name = wxPyPanelNameStr) : wxScrolledWindow(parent, id, pos, size, style, name) {} - void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } bool DoEraseBackground(wxDC* dc) { #ifdef __WXMSW__ return wxWindow::DoEraseBackground(dc->GetHDC()); @@ -505,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, @@ -518,7 +515,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);