]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Sound.py
check for wxHAS_HUGE_FILES
[wxWidgets.git] / wxPython / demo / Sound.py
index 91508ad5c851b8c905771cabda3ba1b34ed7fd73..de0e5b948e9289dd21b76acf019f887be512bd9f 100644 (file)
@@ -54,8 +54,12 @@ class TestPanel(wx.Panel):
                             style=wx.OPEN)
         if dlg.ShowModal() == wx.ID_OK:
             try:
-                sound = wx.Sound(dlg.GetPath())
-                sound.Play()
+                #sound = wx.Sound(dlg.GetPath())
+                #sound.Play()
+
+                # another way to do it.
+                wx.Sound.PlaySound(dlg.GetPath())
+                
             except NotImplementedError, v:
                 wx.MessageBox(str(v), "Exception Message")
         dlg.Destroy()