Aquire the GIL before raising the NotImplementedError exception
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,12 +30,14 @@ class wxWave : public wxObject
|
||||
public:
|
||||
wxWave(const wxString& fileName, bool isResource = False) {
|
||||
wxPyBeginBlockThreads();
|
||||
PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
|
||||
PyErr_SetString(PyExc_NotImplementedError,
|
||||
"wxWave is not available on this platform.");
|
||||
wxPyEndBlockThreads();
|
||||
}
|
||||
wxWave(int size, const wxByte* data) {
|
||||
wxPyBeginBlockThreads();
|
||||
PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
|
||||
PyErr_SetString(PyExc_NotImplementedError,
|
||||
"wxWave is not available on this platform.");
|
||||
wxPyEndBlockThreads();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user