use Tk; my $mw = MainWindow->new; $mw->Label(-text => "Foo")->pack; $mw->after(2000, sub {exit}); MainLoop;
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: autoclose a Perl-Tk window after 2 seconds.
by shmem
in thread autoclose a Perl-Tk window after 2 seconds.
by shobhit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |