Re: getOpenFile etc. wish-list
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: getOpenFile etc. wish-list

From: Koen Danckaert <danckaer@retarget.com>
Date: Mon Feb 27 2006 - 15:24:54 CET

Hi,

If you have Tcl/Tk 8.4.12, find the file "tkfbox.tcl" in your Tk installation. At line 777, you will see:

    set ::tk::dialog::file::showHiddenBtn 0
    set ::tk::dialog::file::showHiddenVar 1

Replace them by:

    set ::tk::dialog::file::showHiddenBtn 1
    set ::tk::dialog::file::showHiddenVar 0

And you're done...

Bottom line: this functionality is already present in Tk, but for some reason it's not exposed yet...

Koen

Donal K. Fellows wrote:
> Eckhard Lehmann wrote:
>> So my question and a first point on my wish-list for these dialogs
>> would be to have an -exclude option that glob's or regex'es directories
>> not to show, so that I can for instance say:
>>
>> tk_getOpenFile -initialdir $::env(HOME) -exclude ".*"
>
> Actually, the best thing is to add something to the dialog to turn
> off/on display of "hidden" files (defaulting to off, of course). This
> could then be done without an API change, and hence wouldn't require a
> TIP (and porting to the other platforms we support).
>
> Donal.
Received on Sun Apr 30 02:16:51 2006