Dear perl monks, I have a perl program with a Tk Gui. The program runs fine when launched with perl my_prog.pl. However, I have packed it using pp and now I face the problem described below.

My program uses the getOpenFile method to ask the user to select a file to be opened. In the packed version of my program, the opened file selection window does not list any file (but it should!), whereas it listed all the files, as required, in the original program.

The specific error message that I get is the following:
~/svn/my_prog> FLT.bin XS_Tk__Callback_Call error:must specify one of -data, -file, -array or + -id at Tk/Image.pm line 21. Tk::Error: must specify one of -data, -file, -array or -id at Tk/Image +.pm line 21. Tk callback for image Tk::Image::new at Tk/Image.pm line 21 Tk::Image::__ANON__ at Tk/Image.pm line 63 Tk::FBox::Update at Tk/FBox.pm line 402 Tk::After::once at Tk/After.pm line 89 [once,[{},after#17,idle,once,[{},Update]]] ("after" script) XS_Tk__Callback_Call error:must specify one of -data, -file, -array or + -id at Tk/Image.pm line 21.
Except for this problem, the program works fine. I have not managed to solve this problem by myself, so, I would really appreciate any help. Thanks!

Best regards, GB

In reply to perl, Tk GUI, problem with getOpenFile, in a packed program by gbertrand

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.