]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_evthandler.i
Version
[wxWidgets.git] / wxPython / src / _evthandler.i
index 5cbe3734c961b6cf15c4c909b88ead803e563cbc..d54c5aa1eb71c90fa49c13022224b007aa94b4a0 100644 (file)
@@ -73,9 +73,9 @@ public:
     }
 
     %extend {
-        void _setOORInfo(PyObject* _self) {
+        void _setOORInfo(PyObject* _self, bool incref=true) {
             if (_self && _self != Py_None) {
-                self->SetClientObject(new wxPyOORClientData(_self));
+                self->SetClientObject(new wxPyOORClientData(_self, incref));
             }
             else {
                 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();