rkrasowski has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = new MainWindow; my $label = $mw -> Label(-textvariable =>\&timer); $label -> grid(-row=>1,-column=>1); $mw->repeat(1000,\&timer); MainLoop; sub timer{ my $time = time(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk and textvariable update
by GrandFather (Saint) on Dec 19, 2011 at 01:13 UTC | |
|
Re: Tk and textvariable update
by ~~David~~ (Hermit) on Dec 19, 2011 at 06:19 UTC |