kkma has asked for the wisdom of the Perl Monks concerning the following question:
I'm new to perl-Tk, and was trying to do something with the Button. I have two commands to execute and it has to be executed separately. In the usual way, I can do it with two subs and two buttons. The question is, can I do it with one Button which will go to first sub on first click and change the text of Button to the second command and after clicking it the second time, will go to the second sub? I've googled and did not get any solution. It will be helpful, if anybody can help me out.
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing the button function
by choroba (Cardinal) on Dec 07, 2013 at 21:05 UTC | |
|
Re: Changing the button function
by zentara (Cardinal) on Dec 08, 2013 at 16:47 UTC | |
|
Re: Changing the button function
by taint (Chaplain) on Dec 07, 2013 at 21:07 UTC | |
by hdb (Monsignor) on Dec 07, 2013 at 23:14 UTC | |
by taint (Chaplain) on Dec 07, 2013 at 23:29 UTC |