in reply to Tk - removing a message box automatically
You can create a new Toplevel, populate it, and tell it to destroy itself after a time passes. For example (untested):
my $box = $mw->Toplevel; my $message = $box->ROText->pack; $message->insert(end => "Hey there! Gotta go!"); $box->after(3000, sub { shift->destroy });
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Tk - removing a message box automatically
by crabbdean (Pilgrim) on Mar 25, 2004 at 04:51 UTC |