X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a72f4631fe5ab7ebeefdacf8ec9c826ea962133f..42f8298f6f42d5d63bb3caf65682b7d9d9f8b702:/wxPython/src/_sound.i diff --git a/wxPython/src/_sound.i b/wxPython/src/_sound.i index 9ddc7901c7..27fab6cc91 100644 --- a/wxPython/src/_sound.i +++ b/wxPython/src/_sound.i @@ -85,7 +85,8 @@ public: else return new wxSound(fileName); } - %name(SoundFromData) wxSound(PyObject* data) { + %RenameCtor(SoundFromData, wxSound(PyObject* data)) + { unsigned char* buffer; int size; wxSound *sound = NULL; @@ -135,16 +136,9 @@ public: bool Play(unsigned flags = wxSOUND_ASYNC) const; // Plays sound from filename: - %name(PlaySound) static bool Play(const wxString& filename, unsigned flags = wxSOUND_ASYNC); + %Rename(PlaySound, static bool, Play(const wxString& filename, unsigned flags = wxSOUND_ASYNC)); -#ifndef __WXMAC__ static void Stop(); -#else - %extend { - static void Stop() - { wxPyRaiseNotImplemented(); } - } -#endif %pythoncode { def __nonzero__(self): return self.IsOk() } };