[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Tkinter question
From:       Rotwang <sg552 () hotmail ! co ! uk>
Date:       2010-04-21 10:45:02
Message-ID: hqmkvh$e0r$1 () news ! eternal-september ! org
[Download RAW message or body]

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?
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic