else
return new wxSound(fileName);
}
- %name(SoundFromData) wxSound(PyObject* data) {
+ %RenameCtor(SoundFromData, wxSound(PyObject* data))
+ {
unsigned char* buffer; int size;
wxSound *sound = NULL;
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() }
};