git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27148
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
def OnButton2(self, evt):
try:
def OnButton2(self, evt):
try:
- sound = wx.Sound(opj('data/plan.wav'))
+ #sound = wx.Sound(opj('data/plan.wav'))
+ data = open(opj('data/plan.wav'), 'rb').read()
+ sound = wx.SoundFromData(data)
self.log.write("before Play...\n")
sound.Play(wx.SOUND_ASYNC)
wx.YieldIfNeeded()
self.log.write("before Play...\n")
sound.Play(wx.SOUND_ASYNC)
wx.YieldIfNeeded()