]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/misc2.i
First pass at wxPython for Mac (darwin only so far). It
[wxWidgets.git] / wxPython / src / misc2.i
index 475493e05dc1e9a16d5897ab3422d79633745564..ef2ce8ad78d57c45ee77bd1f4138347576833696 100644 (file)
@@ -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; }