in reply to Cursor in TK
$top->Busy; call_you_sub_here(); $top->Unbusy;
I haven't tested it however, so YMMV
Update: Tested with ActiveState 5.8.3 and the default Tk, and it works for me.
use Tk; my $mw = MainWindow->new; $mw->Button(-text => "Goodbye World!", -command =>sub{exit})->pack; $mw->Button(-text => "Act busy!", -command =>sub{$mw->Busy; sleep 1;$mw->Unbusy;}) ->pack; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cursor in TK
by Scarborough (Hermit) on Aug 19, 2004 at 16:27 UTC |