Chris Line wrote: > When the 'stop' button is selected after 'count', it does > not execute until the count command finishes at 500. > Instead, it is desired to stop counting immediately and > execute the 'stop' method. > > Is there a simple way to handle this situation?
calling self.update() at regular intervals inside the loop (at least a couple of times per second, if you can arrange that) will give Tkinter a chance to process incoming events. another possibility is to use a thread to do the processing, but that involves other tricky issues (especially if you want to update the UI from the thread). </F> -- http://mail.python.org/mailman/listinfo/python-list