Re: (mis)behaviour of getOpenFile

[email protected]
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
"Henry Merryweather" <[email protected]> wrote:
> I am trying to use the getOpenFile widget (Mastering Perl/Tk page 568 -
> First Edition).  Whilst this is perfectly OK when there are 3000 files
> in a directory I do not get a list of files (even when leaving the
> application running for a matter of minutes) to select from when there
> are 6000 files in the directory.  Looking at the task manager I find
> that Perl.exe is running and using about 70% of the CPU time and that
> the memory used in lower than that available.  I can view the directory
> using the Windows Explorer.  Is there a fundamental problem and/or how
> can I make the widget work quicker?

I can think of a number of workarounds:

* Use the Win32::FileOp module.

* Use one of the other both file dialogs bundled with Perl/Tk:
  Tk::FileSelect and Tk::FBox. The latter is called on Unix systems when
  using getOpenFile.

It would be nice to know if it's a Perl/Tk problem or a core Tk
problem. Try to reproduce the problem with Tcl/Tk (the script
should just contain
    tk_getOpenFile
), preferably with the same version Perl/Tk is based on.

Regards,
	Slaven

-- 
     __o		Slaven Rezic
   _`\<,_		slaven <at> rezic <dot> de
__(_)/ (_)____
______________________________________________________________________________
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.