ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-tk
perl-tk
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved