]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_pywindows.i
Adding overview docs and a couple tweaks to the demo.
[wxWidgets.git] / wxPython / src / _pywindows.i
index 1305baebd3b6b0fb00c5c28f516743f91fc6b815..3dfc58acab658f388ff86b0ee60ce0a54312b28a 100644 (file)
@@ -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);