On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel wrote:
> On 07/16/2013 11:04 PM, fronag...@gmail.com wrote:
> 
> > Noted on the quoting thing.
> 
> >
> 
> > Regarding the threading, well, first, I'm not so much a programmer as 
> > someone who knows a bit of how to program.
> 
> >
> 
> > And it seems that the only way to update a tkinter window is to use the 
> > .update() method, which is what I was experimenting with. Start up a new 
> > thread that just loops the .update() with a 1ms sleep until the download is 
> > done. It seems to work, actually.
> 
> >
> 
> 
> 
> update() is to be used when it's too awkward to return to mainloop.  In 
> 
> my second approach, you would periodically call it inside the processing 
> 
> loop.  But unless tkinter is unique among GUI's, it's unsafe to do that 
> 
> in any thread besides the GUI thread.
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> DaveA

Ok. Well, what I'm currently doing, based on advice from this thread, is to 
create a new thread that handles the downloading, as well as updating a 
variable for text display on the GUI, and in the main thread, just after the 
thread is created, a while loop that updates the GUI while the thread is 
running.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to