diff --git a/wxPython/src/msw/misc2.cpp b/wxPython/src/msw/misc2.cpp index 21631395cc..156e83a7e2 100644 --- a/wxPython/src/msw/misc2.cpp +++ b/wxPython/src/msw/misc2.cpp @@ -239,14 +239,14 @@ class wxWave : public wxObject { public: wxWave(const wxString& fileName, bool isResource = FALSE) { - bool doSave = wxPyRestoreThread(); + wxPyTState* state = wxPyBeginBlockThreads(); PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); - wxPySaveThread(doSave); + wxPyEndBlockThreads(state); } wxWave(int size, const wxByte* data) { - bool doSave = wxPyRestoreThread(); + wxPyTState* state = wxPyBeginBlockThreads(); PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); - wxPySaveThread(doSave); + wxPyEndBlockThreads(state); } ~wxWave() {} diff --git a/wxPython/wxPython/lib/activexwrapper.py b/wxPython/wxPython/lib/activexwrapper.py index 479203e9bc..d7dde4bbda 100644 --- a/wxPython/wxPython/lib/activexwrapper.py +++ b/wxPython/wxPython/lib/activexwrapper.py @@ -130,7 +130,7 @@ def axw_OEB(self, event): def axw_Cleanup(self): - #del self._wnd + del self._wnd self.close() ## anything else???