Saturday, July 29, 2006

I am playing around with the code from boa constructors getting started tutorial. This is supposed to open a file however there is nothing that prints the file to the notebook. Not realy music related except to point out how easy it is to build a csound editor in python. I added one more command to the online refrence. It will take some time to make it less cheesy there realy isn't that many examples of online and I have some other things to do. May have a handfull more later today.

#This is the file open dialog box
def OnFileOenMenu(self, event):
dlg = wx.FileDialog(self, "Choose a file", ".", "", "*.orc",wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
filename = dlg.GetPath()
# Your code this is the getting started example and it loads but doesn't display the file. (hopefully loads)
self.SetTitle(('Notebook - %s') % filename)

Comments: Post a Comment

<< Home

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