]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_pycontrol.i
update from herbert breunung
[wxWidgets.git] / wxPython / src / _pycontrol.i
index 205dab0e90b64368586e7f843ce206ee9132e457..dc1e8047b9ec5c2753d270774f79aba88af19125 100644 (file)
@@ -99,13 +99,14 @@ IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
 %}
 
 // And now the one for SWIG to see
+MustHaveApp(wxPyControl);
 class wxPyControl : public wxControl
 {
 public:
     %pythonAppend wxPyControl         "self._setOORInfo(self); self._setCallbackInfo(self, PyControl)"
     %pythonAppend wxPyControl()       ""
 
-    wxPyControl(wxWindow* parent, const wxWindowID id,
+    wxPyControl(wxWindow* parent, const wxWindowID id=-1,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = 0,