Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'created,': 0.09; 'gui': 0.12; 'thread': 0.14; 'doing,': 0.16; 'event-driven': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'thread,': 0.16; 'timeout': 0.16; 'variable.': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'widget': 0.19; 'handles': 0.22; 'header :User-Agent:1': 0.23; 'updating': 0.26; 'least': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; "i'm": 0.30; 'ok.': 0.31; 'text': 0.33; "i'd": 0.34; 'advice': 0.35; 'display': 0.35; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'according': 0.40; 'how': 0.40; 'new': 0.61; 'email addr:gmail.com': 0.63; 'ms.': 0.84; 'technique': 0.93 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Wed, 17 Jul 2013 16:53:59 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130105 Thunderbird/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: tkinter redraw rates References: <17c2ef71-ee2d-4229-9731-e0d54a0997cb@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374101739 news.xs4all.nl 15940 [2001:888:2000:d::a6]:35335 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50809 On 07/17/2013 05:08 AM, fronagzen@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.