X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..cc6eca35090e1735e2dde009185476dc80726b97:/wxPython/src/_wave.i diff --git a/wxPython/src/_wave.i b/wxPython/src/_wave.i index 48def62312..a55857dc3b 100644 --- a/wxPython/src/_wave.i +++ b/wxPython/src/_wave.i @@ -28,21 +28,23 @@ class wxWave : public wxObject { public: - wxWave(const wxString& fileName, bool isResource = FALSE) { + 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(); } ~wxWave() {} - bool IsOk() const { return FALSE; } - bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } + bool IsOk() const { return False; } + bool Play(bool async = True, bool looped = False) const { return False; } }; #endif @@ -53,7 +55,7 @@ public: class wxWave /*: public wxObject*/ { public: - wxWave(const wxString& fileName, bool isResource = FALSE); + wxWave(const wxString& fileName, bool isResource = False); %extend { %name(WaveData) wxWave(const wxString& data) { return new wxWave(data.Len(), (wxByte*)data.c_str()); @@ -63,7 +65,7 @@ public: ~wxWave(); bool IsOk() const; - bool Play(bool async = TRUE, bool looped = FALSE) const; + bool Play(bool async = True, bool looped = False); %pythoncode { def __nonzero__(self): return self.IsOk() } };