[Tkinter-discuss] Forcing a window to update with while loop running

Adam Kadzban mightyshortadam at gmail.com
Tue Jun 23 19:20:10 CEST 2009


Seems to be working - I have after() running to update the window's status
box, and check for the "stop" button press, as well as a forced update at
the end of the while loop to make sure it doesn't miss a button press .

Thanks again,
Adam

On Thu, Jun 18, 2009 at 4:50 PM, Cameron Laird <Cameron at phaseit.net> wrote:

> On Thu, Jun 18, 2009 at 03:58:36PM -0500, Adam Kadzban wrote:
>                        .
>                        .
>                        .
> > Thanks Cameron.  I realize actually having something that works is good,
> > however the "...do stuff..." in my code is controlling an xray beam
> taking
> > pictures on a CCD, so I want it to be as streamlined as possible.  I'll
> dig
> > through that wiki article though, and maybe take a look at threads.
>                         .
>                        .
>                        .
> I repeat:  others have traveled the same path (well, maybe not
> with X-rays).  <URL:
> http://bytes.com/groups/python/623383-use-threads-tkinter-event-loop >
> is typical.
>
> My personal favorite is to use after(); here's an example you'll
> probably prefer to the Wiki page I earlier sent:  <URL:
>
> http://stackoverflow.com/questions/459083/how-do-you-run-your-own-code-alongside-tkinters-event-loop>.
>
> We need more of our own Wiki pages; <URL:
> http://tkinter.unpy.net/wiki/ProgressMeter?highlight=(after)<http://tkinter.unpy.net/wiki/ProgressMeter?highlight=%28after%29>>
> is the closest we currently have to your situation.
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20090623/8e8b063a/attachment.htm>


More information about the Tkinter-discuss mailing list