Monday, July 31, 2006

 

more boa constructor bugs and bugs in my source

http://python-forum.org/py/viewtopic.php?p=5523#5523

import wx
import CsoundVST

#get name then play .csd file
def playcsdfile():
dlg = wx.FileDialog(self, "Choose a 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()




I auto generated most of this with boa constructer and it gives me an error with the def statement. I am trying to compile it but not use it. Do I need to do anything else to test it?? This is just my second program in addition to the example and if I can get past this issue I should have code flying out of my computer. I would be gratefull for any help.



is telling me connection refused and then it stops.
then it tells me
File "csoundroutines.py", line 5 def playcsdfile(): ^ I cant cut and post the trace back in boa constructer but it says
syntax error invaled syntax csoundroutines.py def playcsdfile():
The board gets rid of all the white space or it would show the indentation also if it is important. the csoundvst is in another directory along with the .dll it apeared in csound somewhere between version 5.0 and 5.02 and the example for csounds magazine ran but was buggy. Do I need the entire path or do I need to ask for a variable when I declare the code as a function??
thanks for the help in advance
this is just a reprint of my posting I am finding more bugsin boa constructor. I only complain because it is a nicetool that has some bugs to get rid of. It loads your oldproject nicely but forgets the path it is in so when you adda file after you hav restarted it, it ends up not being ableto find it. found another potential problem when it loadsa bitmap file it does the entire path instead of a relativepath so that it has to be in the same directory as thecomputer it was programed on or it cant find the file

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?