srikrishnan has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, In order to change the colour of my whole widget, I used the following +: $mw -> setPalette('#fcfafa'); in my perl script. It works successfully. When I make exe using "par" module, exe is not working. But when I rem +ove this line from my perl script then the converted exe working perf +ectly. How can I solve this problem? Please help me anyone. Thanks in Advance, Srikrishnan

Replies are listed 'Best First'.
Re: perl-Tk: how to use setPalette
by lamprecht (Friar) on Jun 20, 2009 at 22:44 UTC
    Hi,

    you have to add the following modules to your executable using pp's -M switch or requiring them somewhere in your program to make PAR pick them up:

    require Tk::Labelframe; require Tk::Message; require Tk::Spinbox; require Tk::Text;
    Cheers, Christoph

    update: Submitted a patch that solves this issue to Module::ScanDeps rt
    https://rt.cpan.org/Ticket/Display.html?id=47209

      Hi Christoph, Thanks for your valuable suggestion. Thanks a lot, srikrishnan