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 <came...@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@python.org > http://mail.python.org/mailman/listinfo/tkinter-discuss >
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss