in reply to perl TK - change the cursor
#!/usr/bin/perl -- use strict; use warnings; use Tk; my $mw = tkinit; my $labelvar = 0; $mw->Label(-textvariable=>\$labelvar )->pack; $mw->Button( -text => "Button", -command => sub { $mw->Busy; for( 1 .. 10){ $labelvar=$_; $mw->update; select(undef, undef, undef, 0.25);#sleep of 250 milliseconds } $mw->Unbusy; })->pack; $mw->MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl TK - change the cursor
by sagibeli (Novice) on May 12, 2009 at 08:06 UTC |