gri6507 has asked for the wisdom of the Perl Monks concerning the following question:
I believe I have seen this question posted here some time ago, but cannot find a link to it now. I have an Tk app that had two buttons: Run and Cancel. Normally, the Run button is "normal" and the Cancel is "disabled". When Run is clicked, the button states change. However, since the Run callback takes a long time to execute, the Cancel button does not function (the desired behavior is to break out of the Run callback and change the button states back, but I can't even get it to print "hello"). It's as though I need to display the Cancel button in a seperate thread.
Please help. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk buttons: Run/Cancel
by converter (Priest) on Aug 13, 2003 at 17:31 UTC | |
by gri6507 (Deacon) on Aug 13, 2003 at 18:42 UTC | |
|
Re: Tk buttons: Run/Cancel
by meredith (Friar) on Aug 13, 2003 at 17:35 UTC | |
by gri6507 (Deacon) on Aug 13, 2003 at 17:53 UTC | |
by meredith (Friar) on Aug 14, 2003 at 03:28 UTC | |
|
Re: Tk buttons: Run/Cancel
by RMGir (Prior) on Aug 13, 2003 at 17:58 UTC | |
|
Re: Tk buttons: Run/Cancel
by Anonymous Monk on Jan 20, 2004 at 16:19 UTC |