tkinter redraw rates

Michael Torrie torriem at gmail.com
Wed Jul 17 18:53:59 EDT 2013


On 07/17/2013 05:08 AM, fronagzen at gmail.com wrote:
> 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.

Not sure what you mean by "while loop."  In an event-driven paradigm,
one technique would be to set a timeout event that fires every so many
ms.  Then in the event callback, you update the widget according to the
new value of the variable.  At least this is how i'd do it in Qt or GTK.



More information about the Python-list mailing list