Janish has asked for the wisdom of the Perl Monks concerning the following question:
Hello... as title says, I would like to freeze a button while it is in the active mode. This is perhaps a simple question that you think I might get from web, but I just can't relate how to do that with my real code. I knew that a button can be set on it's state to 'normal', 'active' and 'disabled', but how do I apply it within my code bellow if each button below incurred some other subroutines? I just want to freeze the button "run all" until the job of invoking the job1, job2 & job3 button is done. Also, another side question on my flash button, why is it not flashing when the "run all" button is pressed? Thanks for your help.
my $run_all_btn=$mw->Button( -text => 'run all', -width => 20, -height => 2, -activebackground => 'red', -background => 'green', -command => sub { $run_job1->invoke(); $run_job2->invoke(); $run_job3->invoke(); #I want the button freeze until run compl +etion of all buttons job1, 2 and 3. })->pack(); $run_all_btn->flash(); #seem not working
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to freeze a button while it is in active mode
by zentara (Cardinal) on Jul 17, 2014 at 14:51 UTC | |
by Janish (Sexton) on Jul 18, 2014 at 02:46 UTC | |
|
Re: How to freeze a button while it is in active mode
by Anonymous Monk on Jul 17, 2014 at 10:07 UTC | |
by Janish (Sexton) on Jul 18, 2014 at 02:49 UTC | |
|
Re: How to freeze a button while it is in active mode
by locked_user sundialsvc4 (Abbot) on Jul 17, 2014 at 12:33 UTC | |
by SuicideJunkie (Vicar) on Jul 17, 2014 at 19:31 UTC | |
by Janish (Sexton) on Jul 18, 2014 at 02:41 UTC |