Subject: | I think I found a bug in Tk-TOTD-0.20 |
Date: | Fri, 1 Nov 2013 20:31:03 +0000 |
To: | "bug-Tk-TOTD [...] rt.cpan.org" <bug-Tk-TOTD [...] rt.cpan.org> |
From: | Daniel Richards <Daniel.Richards [...] onsemi.com> |
I am using Linux on a 2.6.18 kernel (yeah, it's old. It's a work computer), Perl 5.16.0 and Tk-TOTD-0.20<http://search.cpan.org/%7Ekirsle/Tk-TOTD-0.20/>. I found that a program using Tk::TOTD doesn't want to give control back to the shell used to call the program, and I have to Ctrl-c the program. In addition, with Ctrl-c, I am unable to verify if the check button actually does anything. The following code produces the error. I posted this on Perlmonks (in node http://www.perlmonks.org/?node_id=1060803, in case you were curious) and at least one other also reproduced it.
#!/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;
Daniel Richards
Intern
ON Semiconductor
Corp R&D Integration
Email: daniel.richards@onsemi.com
Work: 208-233-4690 x6316