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

Yeah that is really cool
but is it possible to remove the minimize and maximize button in the dialog box ?

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

Replies are listed 'Best First'.
Re^3: display information in the box in a notification area
by zentara (Cardinal) on Dec 24, 2009 at 12:58 UTC
    ... yes....uncomment the line
    # $notification->overrideredirect(1); # Remove window decorations

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

      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

        ... 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