in reply to Re^3: display information in the box in a notification area
in thread display information in the box in a notification area

Yeah it is really really cool
My requirements will complete if the parent or top level window hides or closed.
while the child window exists

  • Comment on Re^4: display information in the box in a notification area

Replies are listed 'Best First'.
Re^5: display information in the box in a notification area
by zentara (Cardinal) on Dec 27, 2009 at 15:10 UTC
    ... if you need it all to exit, without continuing with the same pid running, try this
    #!/usr/bin/perl use warnings; use strict; use Tk; my $notification = tkinit; $notification->geometry('+400+400'); # here you can put stuff you want to occur when the window closes # like send an email or something #$notification->protocol('WM_DELETE_WINDOW' => sub { }); $notification->overrideredirect(1); # Remove window decorations $notification->Label( -text => 'Your message displayed here for 5 seconds.', -foreground => 'white', -background => 'black', -height => 5 )->pack; $notification->after( 5000, sub{ $notification->exit; } ); MainLoop;

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku