Re: GetOpenFile problem
by Todd Littlefield other posts by this author
Jul 16 2007 6:32PM messages near this date
GetOpenFile problem
|
disable right click menu for Text/ROText widget
SOURCE Hmm... That is strange behavior. Did you create a filter of any sort
when you
created the widget? something along the lines of:
my $types = [ ['All', ['.*']] ];
$file = $toplevel-> getOpenFile( -filetypes => $types );
That should cause the dialog to show all sub-directories/files in a
directory. I don't
have the Mastering Perl Tk book, so I'm not sure what their example
looks like.
If the above suggestion does not work, can you post your existing code?
Hope this helps.
- Todd
Henry Merryweather wrote:
>
> I am using Perl 5.8.8 on under Windows.
>
>
>
> I and some other users am having intermittent problems when using the
> GetOpenFile dialog (see Mastering Perl Tk pages circa 568) where the
> directories and files for a selected directory are not shown. It is
> not all clear what conditions cause this since I get different results
> when I go to the same directory at different times. Neither is the
> â??solutionâ?? constant. For example sometimes I can get the missing list
> by entering a * in the /File Name/ â??boxâ?? and sometimes I can get the
> list by going down one directory level and then trying at the failing
> level. However, I am never certain if either of these will work.
>
>
>
> Is there any way to prevent the problem happening. For example can
> something be â??calledâ?? before using this dialog so that it behaves as
> wanted?
>
>
>
>
>
> Best regards
>
>
>
> Henry Merryweather
>
>
>
> Telephone: +44 (0) 1225 859051
>
> Web: www.merryweathersolutions.co.uk
> <http://www.merryweathersolutions.co.uk>
>
>
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.10.6/902 - Release Date:
> 15/07/2007 14:21
>
> ------------------------------------------------------------------------
>
> --++**==--++**==--++**==--++**==--++**==--++**==--++**==
> ptk mailing list
> ptk@[...].edu
> https://mailman.stanford.edu/mailman/listinfo/ptk
>
>
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
ptk@[...].edu
https://mailman.stanford.edu/mailman/listinfo/ptk
Thread:
Henry Merryweather
Todd Littlefield
|