in reply to Tk Popup tutorial window only once?

File::HomeDir + File::ShareDir => File::UserConfig

hmm,... Tk::TOTD - Tip Of The Day dialog for Perl/Tk.

  • Comment on Re: Tk Popup tutorial window only once?

Replies are listed 'Best First'.
Re^2: Tk Popup tutorial window only once?
by ric00015 (Beadle) on Nov 01, 2013 at 15:59 UTC

    Thanks for the TOTD tip. I just tried it, and it seemed to work, but I have a slight problem. The program doesn't seem to return control to the shell that called it once the program exits. The effect is reproducible in the following code:

    #!/usr/bin/env perl use strict; use warnings; use utf8; use Tk; use Tk::TOTD; my $mw = MainWindow->new; my $label = $mw->Label( -text => 'hi!')->pack; my $entry = $mw->Entry()->pack; my $button = $mw->Button( -text => 'push me!')->pack; my @messages = ( 'message 1', 'message 2', 'message 3'); my $totd = $mw->TOTD ( -title => 'Tip Of The Day', -messages => \@messages); $totd->Show; MainLoop;

    If necessary, i can open this in a new node.