in reply to Tk::FileDialog: can't make ".filedialog" its own master

Hi Roy Johnson,

I hadn't heard of this bug before, but it's apparently been discussed.  Here, for example, is a closely-related bug written against ActiveState's bug database.

While searching google, there was one place where it was recommended that the programmer use Tk::getFileOpen instead.  Would that be a valid alternative, perhaps?


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
  • Comment on Re: Tk::FileDialog: can't make ".filedialog" its own master

Replies are listed 'Best First'.
Re^2: Tk::FileDialog: can't make ".filedialog" its own master
by Roy Johnson (Monsignor) on Oct 19, 2007 at 22:14 UTC
    Your Google-fu is apparently more powerful than mine. Thanks for the link. I didn't find a Tk::getFileOpen, but searching CPAN for getopenfile brought up chooseDirectory, and its file-selecting counterpart, getOpenFile, which appears to be undocumented on CPAN (but it's in chooseDirectory's SEE ALSO, and it works when I try it — and perldoc covers it). These are very fine widgets indeed.

    Caution: Contents may have been coded under pressure.
      Thanks for this one. It's been three years since your posts, but the bug hasn't been fixed. I just came up against it on a Win7 system with ActivePerl 5.10.0.
      GetOpenFile works fine for me, so I'll just use that. Here's the documentation on getOpenFile. It comes with Tk, no install needed.
        Hmmm, I'm getting this problem on a debian install perl. not activeperl. i'm using it to select only directories and i tried Gtk2::Ex::Dialogs::ChooseDirectory and came up against hell with it too until i realized that everything else in the app is tk. tia