This commit was manufactured by cvs2svn to create tag 'wxPy_2_5_3_1'.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/wxPy_2_5_3_1@30405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2004-11-10 00:53:10 +00:00
parent d1f46a1c4d
commit ce096b777a
160 changed files with 11066 additions and 10325 deletions

View File

@@ -41,6 +41,7 @@ class TestPanel(wx.Panel):
self.log.write("before Play...\n")
sound.Play(wx.SOUND_ASYNC)
self.sound = sound # save a reference (This shoudln't be needed, but there seems to be a bug...)
wx.YieldIfNeeded()
self.log.write("...after Play\n")
except NotImplementedError, v:
@@ -54,11 +55,11 @@ class TestPanel(wx.Panel):
style=wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
try:
#sound = wx.Sound(dlg.GetPath())
#sound = wx.Sound(dlg.GetPath(), wx.SOUND_SYNC)
#sound.Play()
# another way to do it.
wx.Sound.PlaySound(dlg.GetPath())
wx.Sound.PlaySound(dlg.GetPath(), wx.SOUND_SYNC)
except NotImplementedError, v:
wx.MessageBox(str(v), "Exception Message")