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.
In reply to Tk buttons: Run/Cancel by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |