sarta
Programmer
- Nov 3, 2006
- 29
Using tk on linux, I want to display a messagebox for a second, then have it disappear without human interaction, either by a 1 second timeout or by closing the window in my perl script.
How can I do that? Here is what I have now (since it loops o MainLoop() I don't know how to timeout or close it inside the program)
use Tk;
$mw = MainWindow->new;
$mw->Button( -text => 'Hello World', -command => sub{exit} )->pack;
$mw-popup;
MainLoop;
How can I do that? Here is what I have now (since it loops o MainLoop() I don't know how to timeout or close it inside the program)
use Tk;
$mw = MainWindow->new;
$mw->Button( -text => 'Hello World', -command => sub{exit} )->pack;
$mw-popup;
MainLoop;