Home > Archive > PerlTk > June 2007 > FileSelect widget problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
FileSelect widget problems
|
|
| Michele 2007-05-04, 7:02 pm |
| I'm using the FileSelect widget, but when I press <Return> in the
"directory entry" the listboxes DO NOT update as expected. What is the
magic command to make the widget fiter again and update the listbox?
Thanks advance
| |
| QoS@domain.invalid.com 2007-05-04, 7:02 pm |
|
Michele <erb@jlab.org> wrote in message-id:
<1178296141.879214.40070@y80g2000hsf.googlegroups.com>
>
>I'm using the FileSelect widget, but when I press <Return> in the
>"directory entry" the listboxes DO NOT update as expected. What is the
>magic command to make the widget fiter again and update the listbox?
>Thanks advance
Well, had a look at FileSelect.pm and nothing jumped right out at me;
but here is how I usually get a file that the user selects, with
getOpenFile and getSaveFile.
my $ofile = $mw->getOpenFile(
-title => 'Select TSV File to Import',
-initialdir => '.',
);
if ($ofile) {
if (open (FH, "< $ofile")) {
#do stuff
}
}
| |
| Michele 2007-05-07, 10:01 pm |
| On May 4, 4:09 pm, Q...@domain.invalid.com wrote:
> Michele <e...@jlab.org> wrote in message-id:
>
> <1178296141.879214.40...@y80g2000hsf.googlegroups.com>
>
>
>
>
> Well, had a look at FileSelect.pm and nothing jumped right out at me;
> but here is how I usually get a file that the user selects, with
> getOpenFile and getSaveFile.
>
> my $ofile = $mw->getOpenFile(
> -title => 'Select TSV File to Import',
> -initialdir => '.',
> );
> if ($ofile) {
> if (open (FH, "< $ofile")) {
> #do stuff
> }
>
> }
Thanks for the response, but I'm not having any difficulting getting
the selected file. I'm having trouble with the file filtering after
the fileselect has been built.
| |
|
|
|
|
|
|
|