Can a Tkinter GUI check for abort script:

Hendrik van Rooyen mail at microcorp.co.za
Tue Dec 19 00:10:56 EST 2006


 Michael Yanowitz  top posted:

>   Presently what happens is that the script takes over and all the buttons on
the GUI disappear
>as the GUI is not given any cpu time to refresh or check if any activity in the
dialog.

Yuk!

you may have to run the script in a thread then, to preserve the GUI mainloop.

Check out the Threading and Thread modules

- Hendrik




More information about the Python-list mailing list