]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_sound.i
Typos
[wxWidgets.git] / wxPython / src / _sound.i
index c91c6a91eb6a2d2e0832fc1d21fc79d3abf7f630..e120cf52a8cd00d022cf5f319c50192cff5ace71 100644 (file)
@@ -38,22 +38,22 @@ class wxSound : public wxObject
 {
 public:
     wxSound() {
 {
 public:
     wxSound() {
-        wxPyBeginBlockThreads();
+        bool blocked = wxPyBeginBlockThreads();
         PyErr_SetString(PyExc_NotImplementedError,
                         "wxSound is not available on this platform.");
         PyErr_SetString(PyExc_NotImplementedError,
                         "wxSound is not available on this platform.");
-        wxPyEndBlockThreads();
+        wxPyEndBlockThreads(blocked);
     }
     wxSound(const wxString&, bool) {
     }
     wxSound(const wxString&, bool) {
-        wxPyBeginBlockThreads();
+        bool blocked = wxPyBeginBlockThreads();
         PyErr_SetString(PyExc_NotImplementedError,
                         "wxSound is not available on this platform.");
         PyErr_SetString(PyExc_NotImplementedError,
                         "wxSound is not available on this platform.");
-        wxPyEndBlockThreads();
+        wxPyEndBlockThreads(blocked);
     }
     wxSound(int, const wxByte*) {
     }
     wxSound(int, const wxByte*) {
-        wxPyBeginBlockThreads();
+        bool blocked = wxPyBeginBlockThreads();
         PyErr_SetString(PyExc_NotImplementedError,
                         "wxSound is not available on this platform.");
         PyErr_SetString(PyExc_NotImplementedError,
                         "wxSound is not available on this platform.");
-        wxPyEndBlockThreads();
+        wxPyEndBlockThreads(blocked);
     }
     
     ~wxSound() {};
     }
     
     ~wxSound() {};
@@ -92,10 +92,11 @@ public:
 #else
     %extend {
         bool Create(int size, const wxByte* data) {
 #else
     %extend {
         bool Create(int size, const wxByte* data) {
-            wxPyBeginBlockThreads();
+            bool blocked = wxPyBeginBlockThreads();
             PyErr_SetString(PyExc_NotImplementedError,
                             "Create from data  is not available on this platform.");
             PyErr_SetString(PyExc_NotImplementedError,
                             "Create from data  is not available on this platform.");
-            wxPyEndBlockThreads();
+            wxPyEndBlockThreads(blocked);
+            return False;
         }
     }
 #endif
         }
     }
 #endif
@@ -112,7 +113,8 @@ public:
     static void Stop();
 #else
     %extend {
     static void Stop();
 #else
     %extend {
-        static void Stop() {}
+        static void Stop()
+            { wxPyRaiseNotImplemented(); }
     }
 #endif
 
     }
 #endif