On Apr 21, 12:45 pm, Rotwang <sg...@hotmail.co.uk> wrote: > Apologies in advance if this is a totally stupid question, I've tried > looking at the Tkinter documentation on the web but since I'm something > of an ignoramus when it comes to programming generally I didn't > understand what I was reading. Anyway... > > I've written a module that allows me to manipulate sound data, and I've > been trying to add a method to my sound class that shows me what a > waveform looks like while I'm working on it in IDLE. After reading a bit > about Tkinter, and via some trial and error, I came up with something a > bit like this: > > def draw(self, w, h): > out = Tkinter.Canvas(width = w, height = h) > # a load of out.create_line(...)'s go here > out.pack() > out.mainloop() > > It works, but the problem is that I can't do anything else with IDLE > until I close the image window. Is there a way around this, so that I > can leave the image open while I continue to do other stuff?
Just run your program directly, either from a terminal or a DOS console or by double-clicking on it in a file manager if the proper file associations have been defined (they are by default on Windows). There might be some IDLE trick to make it work, but I don't use IDLE myself. HTH - Eric - -- http://mail.python.org/mailman/listinfo/python-list