csound question

Started by edexter October 15, 2006
     I am putting together a csound library in python and I am having
trouble getting this to work

def playcsdfile(self):
         dlg = wx.FileDialog(self,"play csd file", ".", "", "*.csd",
wx.OPEN)
         try:
             if dlg.ShowModal() == wx.ID_OK:
                 filename = dlg.GetPath()
                 # Your code
                 csound.load(filename)
                 csound.exportForPerformance()
                 csound.perform()
         finally:
            dlg.Destroy()

https://sourceforge.net/project/showfiles.php?group_id=156455&package_id=202823

sorry about the fromating and if this is the wrong place just thought
someone might be messing around with this sort of thing.