in reply to Can't get Dialog or messageBox to work from button
Call all your functions in Tk with the & or \& prefix if they are defined after their call. Perl can't find them. ;)$f_refresh->Button(-text => 'Test', -command => sub { &displayMsg()})- +>pack(-side=>'left');
Here a direct call to the subroutine do_automode, bind to the command.$update_bttn = $button_f->Button(-text => "Update", -state => 'disabled', -command => sub { &end_automode; &ping_site });
Rem: end_automode, ping_site, do_automode are defined after their calls.$automode_bttn = $button_f->Button(-text => "Start Automode", -command => \&do_automode);
|
|---|