memo.garciasir has asked for the wisdom of the Perl Monks concerning the following question:
I need to get a exe file (for windows) from a perl script using tkpp.
The problem arise when I include some kind of images in the program.
The next script works ok under perl, but when the exe file is created, it fails with the message:
Can't bless non-reference value at Tk/Image.pm line 23. at Tk/ChooseDate.pm line 36
The perl script is:
#! /usr/bin/perl use warnings; use strict; use Tk; use Tk::ChooseDate; my $date; my $mw=MainWindow->new(); my $choosedate = $mw->ChooseDate( -textvariable=>\$date, -command=>sub{print "$date\n"}, )->pack(); MainLoop;
I'll appreciate any help on this.
memo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tkpp fails if images used
by Marshall (Canon) on Sep 03, 2009 at 02:36 UTC | |
by Anonymous Monk on Sep 03, 2009 at 02:48 UTC | |
by memo.garciasir (Acolyte) on Sep 07, 2009 at 19:21 UTC | |
by Marshall (Canon) on Sep 07, 2009 at 22:59 UTC |