Can a Tkinter GUI check for abort script:
Hendrik van Rooyen
mail at microcorp.co.za
Mon Dec 18 08:32:28 EST 2006
More information about the Python-list mailing list
Mon Dec 18 08:32:28 EST 2006
- Previous message (by thread): Can a Tkinter GUI check for abort script:
- Next message (by thread): Can a Tkinter GUI check for abort script:
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Michael Yanowitz" <m.yanowitz at kearfott.com> Wrote: > Hello: > > I have successfully implemented a Tkinter GUI which has > this (simplified here for explanation): > +-------------------------------------+ > | filename: [ ./test3.py] | > | | > | [Run Script] | > +-------------------------------------+ > > But, now what I would like to do while the script is > running, is replace the "Run Script" with "Abort Script". > > +-------------------------------------+ > | filename: [ ./test3.py] | > | | > | [Abort Script] | > +-------------------------------------+ > > So, every tenth of a seconds or ??? better time, I > would like to 'return' to the GUI and check if the > "Abort Script" button has been pressed. > How do I do this? Or is there a better way to > implement this? Use the configure method to change the command of the button, to point away from "run" to "abort", as the first thing done in "run". You can change the text too to read correctly, at the same time, as well as the background colour to red... - Hendrik
- Previous message (by thread): Can a Tkinter GUI check for abort script:
- Next message (by thread): Can a Tkinter GUI check for abort script:
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list