X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/35bf863b1c31c0f1679b214c1b9a742eba918c5e..e6056257ab676ea10a51ef96e19b1f1092f95b40:/wxPython/src/misc2.i diff --git a/wxPython/src/misc2.i b/wxPython/src/misc2.i index 475493e05d..ef2ce8ad78 100644 --- a/wxPython/src/misc2.i +++ b/wxPython/src/misc2.i @@ -761,9 +761,9 @@ long wxExecute(const wxString& command, class wxJoystick : public wxObject { public: wxJoystick(int joystick = wxJOYSTICK1) { - bool doSave = wxPyRestoreThread(); + wxPyTState* state = wxPyBeginBlockThreads(); PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); - wxPySaveThread(doSave); + wxPyEndBlockThreads(state); } wxPoint GetPosition() { return wxPoint(-1,-1); } int GetZPosition() { return -1; }