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

List:       python-list
Subject:    Re: Tkinter question
From:       eb303 <eric.brunel.pragmadev () gmail ! com>
Date:       2010-04-21 15:04:30
Message-ID: 4fcbd8af-e1f9-4f75-b05e-bad5b2062ccf () z11g2000yqz ! googlegroups ! com
[Download RAW message or body]

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

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

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