Tk::PathEntry::Dialog - File dialog using Tk::PathEntry
Using as a replacement for getOpenFile and getSaveFile:
use Tk::PathEntry::Dialog qw(as_default); $filename = $mw->getOpenFile;
Using as a normal module:
use Tk::PathEntry::Dialog; $filename = $mw->PathEntryDialog(-autocomplete => 1)->Show;
This module provides a dialog window with a Tk::PathEntry widget, an OK button and a Cancel button.
With this module, the Tk::PathEntry can also be used as a standard Tk file dialog. You are allowed to select a directory.
You cannot use the options -filetypes, -defaultextension, and -multiple. So the only remaining options are -initialdir, -initialfile, and -title.
-filetypes
-defaultextension
-multiple
-initialdir
-initialfile
-title
PathEntryDialog supports all options of Tk::PathEntry. The additional options are:
Sets the window title.
If this is set to a true value, you will be warned when you select an existing file.
true
Surprisingly this module also works on Microsoft Windows.
The following bug is known for PathEntryDialog on Microsoft Windows: Directly after klicking on a choice in the choices listbox which displays below the PathEntryDialog window, the OK and Cancel buttons don't respond to mouse clicks. Workaround: Move the mouse cursor out of the button and back. Or use the Enter resp. Escape keys in place of the buttons.
PathEntryDialog
OK
Cancel
The following bug is known for PathEntryDialog on Knoppix: PathEntryDialog will often abort immediately with the error message
*** glibc detected *** malloc(): memory corruption: 0x08495514 ***
Workaround: Do something that causes PathEntryDialog to start at a different memory location, e. g. open or close a Konqueror window (beleave me, this may help).
Tk::PathEntry (3), Tk::getOpenFile (3).
Slaven Rezic <srezic@cpan.org>
Copyright (c) 2001 Slaven Rezic. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Tk::PathEntry, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::PathEntry
CPAN shell
perl -MCPAN -e shell install Tk::PathEntry
For more information on module installation, please visit the detailed CPAN module installation guide.