]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxWave.py
cache return value of wxGetOsVersion
[wxWidgets.git] / wxPython / demo / wxWave.py
index 880d871bc7ef89c509ecee50ac63122b5aa38118..3be8f9e71575bcd4db4cf2a07c522e5820ea823d 100644 (file)
@@ -1,5 +1,6 @@
 
 from wxPython.wx import *
+from Main import opj
 
 #----------------------------------------------------------------------
 
@@ -15,9 +16,9 @@ class TestPanel(wxPanel):
         try:
             import time
             if int(time.time()) % 2 == 1:
-                wave = wxWave('data/anykey.wav')
+                wave = wxWave(opj('data/anykey.wav'))
             else:
-                wave = wxWave('data/plan.wav')
+                wave = wxWave(opj('data/plan.wav'))
             wave.Play()
         except NotImplementedError, v:
             wxMessageBox(str(v), "Exception Message")