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

2009-06-23 Thread Adam Kadzban
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 wrote: >

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

2009-06-18 Thread Cameron Laird
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 > pictu

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

2009-06-18 Thread Tim Jones
On Jun 18, 2009, at 1:34 PM, Adam Kadzban wrote: ... loop = 1 ... (create a button that sets loop to 0) ... top.update() <<--- Remove ... while loop: top.update() <<--- Remove ...do stuff... top.update() The result here is that the UI will update on each iteration of the loop. I b

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

2009-06-18 Thread Adam Kadzban
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. Thanks

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

2009-06-18 Thread Cameron Laird
On Thu, Jun 18, 2009 at 03:34:38PM -0500, Adam Kadzban wrote: . . . > Hi again, let me start off by saying that my code does what I want it to, > it's just done in a terribly hackish way, and I'm wondering if there's a > better

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

2009-06-18 Thread Adam Kadzban
Hi again, let me start off by saying that my code does what I want it to, it's just done in a terribly hackish way, and I'm wondering if there's a better way to do it. I've got a Tkinter window, and when you click a button (the 'run' button), it opens a new window. When the new window opens, it s