From 401d3cc731ab262e16c90b942192f3f0657ef126 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 17 Sep 2001 22:42:20 +0000 Subject: [PATCH] minor fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/msw/misc2.cpp | 8 ++++---- wxPython/wxPython/lib/activexwrapper.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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??? -- 2.47.2