Hi Monks,

I am getting a Tk::FBox error which seems to be specific to fedora (can't replicate on windows at least) and the '-multiple' flag - setting it to 0 causes no error.

Here is the code:

#!/usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new(); my @files = $mw->getOpenFile(-multiple => 1,); print "File was '$_'\n" for @files;

And the error stack :

---> Desktop $ perl perl/tktest.pl ***-multiple => 0***
File was '/home/clayi/Desktop/fedora-eclipse.desktop'
---> Desktop $ perl perl/tktest.pl***-multiple => 1***
Tk::Error: Failed to AUTOLOAD 'Tk::FBox::_get_select_Path' at perl/tktest.pl line 8
Carp::croak at /usr/lib/perl5/5.10.0/Carp.pm line 44
Tk::Widget::__ANON__ at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk/Widget.pm line 347
Tk::FBox::Done at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk/FBox.pm line 909
Tk::FBox::VerifyFileName at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk/FBox.pm line 678
Tk::FBox::ActivateEnt at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk/FBox.pm line 647
Tk::FBox::OkCmd at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk/FBox.pm line 815
Tk callback for .fbox.frame1.button
Tk::__ANON__ at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk.pm line 250
Tk::Button::butUp at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/Tk/Button.pm line 175
<ButtonRelease-1> (command bound to event)

I have submitted a bugzilla, but haven't heard anything for a month, has anyone else seen anything similar? Has anyone got a workaround/alternate module? I don't care what, I just need to be able to select multiple files.

Thanks in advance.

Just a something something...

In reply to Tk::FileSelect error by BioLion

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.