X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/493f1553fdfd276ed9944c5f1c070ee34be13b52..6af638ed35e8f1c414cc209cda8e5059552883c8:/wxPython/demo/wxWave.py diff --git a/wxPython/demo/wxWave.py b/wxPython/demo/wxWave.py index 880d871bc7..3be8f9e715 100644 --- a/wxPython/demo/wxWave.py +++ b/wxPython/demo/wxWave.py @@ -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")