Name : perl-Tk-SelFile
| |
Version : 0.02
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 7.12
| Date : 2017-08-04 18:19:58
|
Group : Development/Libraries/Perl
| Source RPM : perl-Tk-SelFile-0.02-7.12.src.rpm
|
Size : 0.02 MB
| |
Packager : (none)
| |
Summary : a widget for choosing a file to read or write
|
Description :
This Module pops up a file selector box, with a directory entry with filter on top, a list of directories in the current directory, a list of files in the current directory, an entry for entering or modifying a file name, a read button, a write button, a cancel button, a HOME button, and a button to return to the starting directory (-directory).
The button to return to the starting directory is motivated by the idea that an application may have a directory unrelated to the home directory, e.g. a library of data, that is set to be the starting directory. If the user goes to the home directory, the user may not recall the starting directory that was set by the application.
A call to SelFile few (or no options, such as shown below) will result in the default values shown in the example given in the SYNOPSIS section. The most uptodate list of configuration variables and default values can be found in the subroutine Populate as arguments to the subroutine ConfigSpecs.
$sfw = $mw->SelFile;
A dialog box error message is generated if the user clicks the Read button for a file that does not exist. For Write, a dialog box that requests whether the user wishes to overwrite the file is generated for a file that already exists. Also for Write, a dialog box error message is generated is the file name is blank.
This widget can be configured for requesting a file name to read, requesting a file name for writing, or for requesting either. For the initial call to SelFile that configures the widget, if -readbutlabel is not a member of the argument list, then the default value is used (i.e. Read). If on the other hand it is present but specifies an empty string, as shown below -readbutlabel => \'\', then the button is not created. An analogous rule applies to the argument -writebutlabel.
The file name output is a single space character rather than undef when CANCEL is selected so that the user can process the return values without checking the values, e.g. storing the result for later use.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/x86_64 |