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

List:       python-list
Subject:    Re: Tkinter question
From:       James Mills <prologic () shortcircuit ! net ! au>
Date:       2010-04-21 11:25:27
Message-ID: y2ne1a84d571004210425r2c62da23wa64ac3f528a503c0 () mail ! gmail ! com
[Download RAW message or body]

On Wed, Apr 21, 2010 at 8:45 PM, Rotwang <sg552@hotmail.co.uk> wrote:
> 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?

From reading the documentation myself (pydoc)...

It would seem your only option is to make a thread
out of this (not my preferred way - I was hoping it was
possible to poll the Tk event system...).

cheers
James
-- 
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