Better handling of the refcount of the wx.App object, so it now
destroyed when expected and also resets the current instance pointer returned by wx.GetApp(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,8 +48,8 @@ class wxPyApp : public wxEvtHandler {
|
||||
public:
|
||||
|
||||
%pythonAppend wxPyApp
|
||||
"self._setCallbackInfo(self, PyApp)
|
||||
self._setOORInfo(self)";
|
||||
"self._setCallbackInfo(self, PyApp, False)
|
||||
self._setOORInfo(self, False)";
|
||||
%typemap(out) wxPyApp*; // turn off this typemap
|
||||
|
||||
DocStr(wxPyApp,
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
%typemap(out) wxPyApp* { $result = wxPyMake_wxObject($1, $owner); }
|
||||
|
||||
|
||||
void _setCallbackInfo(PyObject* self, PyObject* _class);
|
||||
void _setCallbackInfo(PyObject* self, PyObject* _class, bool incref);
|
||||
|
||||
|
||||
DocDeclStr(
|
||||
|
Reference in New Issue
Block a user