<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
Sorry.
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">set ::tk::dialog::file::showHiddenBtn 1</FONT>
<FONT COLOR="#000000">set ::tk::dialog::file::showHiddenVar 0</FONT>
</PRE>
</BLOCKQUOTE>
This doesn't work, but the code from my test script does.&nbsp; I inserted it after the Pd-Extended font hacks, around line 42.<BR>
<BR>
&lt;code&gt;<BR>
<BR>
# begin hack to hide hidden files/folder in tk browser on unix ----------<BR>
if {$pd_nt == 0} {<BR>
&nbsp;&nbsp;&nbsp; # load the dialog once, otherwise setting the vars will not work<BR>
&nbsp;&nbsp;&nbsp; catch {tk_getOpenFile -with-invalid-argument}<BR>
<BR>
&nbsp;&nbsp;&nbsp; # change the environment variables<BR>
&nbsp;&nbsp;&nbsp; namespace eval ::tk::dialog::file {<BR>
&nbsp;&nbsp;&nbsp; variable showHiddenBtn 1<BR>
&nbsp;&nbsp;&nbsp; variable showHiddenVar 0<BR>
&nbsp;&nbsp;&nbsp; }<BR>
}<BR>
# end hidden files/folder hack ------------------<BR>
<BR>
&lt;/code&gt;<BR>
<BR>
Now open/save/saveas dialogs hide hidden files and show the toggle button.&nbsp; Awesome!&nbsp; Ok, I assume I might as well open a dev account somewhere are add this as a patch?<BR>
<BR>
Someone else try this in Linux.<BR>
<BR>
On Thu, 2008-04-03 at 17:11 -0400, Hans-Christoph Steiner wrote:
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">You should be able to set that variable in pd.tk and have it work without modifying the other file. &nbsp;Try just adding</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">set ::tk::dialog::file::showHiddenBtn 1</FONT>
<FONT COLOR="#000000">set ::tk::dialog::file::showHiddenVar 0</FONT>
<FONT COLOR="#000000">Somewhere near the top of the pd.tk.</FONT>
<FONT COLOR="#000000">.hc</FONT>
</PRE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">On Apr 2, 2008, at 2:17 PM, danomatika wrote:</FONT><BR>
    <BLOCKQUOTE TYPE=CITE>
        <FONT COLOR="#000000">IOhannes, you found the magic bullet (or forum post, that is)!</FONT><BR>
        <BR>
        <FONT COLOR="#000000">Awesome, I can confirm this works in a little test script and screenshot.&nbsp; It's a button to toggle</FONT><BR>
        <FONT COLOR="#000000">hidden file display as expected.</FONT><BR>
        <BR>
        <FONT COLOR="#000000">On Wed, 2008-04-02 at 10:55 +0200, IOhannes m zmoelnig wrote: </FONT>
        <BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hans-Christoph Steiner wrote:</FONT>
<FONT COLOR="#000000">&gt; This would be huge, it would greatly help the newbies.  In workshops,  </FONT>
<FONT COLOR="#000000">&gt; a lot of people had trouble with those open/save panels.</FONT>
<FONT COLOR="#000000">&gt; </FONT>
<FONT COLOR="#000000">&gt; There are quite a few apps written with Tcl/Tk for GNU/Linux, so I am  </FONT>
<FONT COLOR="#000000">&gt; sure we are not the first to want this feature.  I would be very  </FONT>
<FONT COLOR="#000000">&gt; surprised if another Tcl/Tk app hasn't solved this already.</FONT>

<FONT COLOR="#000000">according to <A HREF="http://www.groupsrv.com/computers/about266840.html">http://www.groupsrv.com/computers/about266840.html</A> it is </FONT>
<FONT COLOR="#000000">acutally already built into tk-8.4 but not exposed!</FONT>

<FONT COLOR="#000000">quoting this article:</FONT>
<FONT COLOR="#000000"> &gt;</FONT>
<FONT COLOR="#000000"> &gt; If you have Tcl/Tk 8.4.12, find the file &quot;tkfbox.tcl&quot; in your Tk</FONT>
<FONT COLOR="#000000"> &gt; installation. At line 777, you will see:</FONT>
<FONT COLOR="#000000"> &gt;</FONT>
<FONT COLOR="#000000"> &gt; set ::tk::dialog::file::showHiddenBtn 0</FONT>
<FONT COLOR="#000000"> &gt; set ::tk::dialog::file::showHiddenVar 1</FONT>
<FONT COLOR="#000000"> &gt;</FONT>
<FONT COLOR="#000000"> &gt; Replace them by:</FONT>
<FONT COLOR="#000000"> &gt;</FONT>
<FONT COLOR="#000000"> &gt; set ::tk::dialog::file::showHiddenBtn 1</FONT>
<FONT COLOR="#000000"> &gt; set ::tk::dialog::file::showHiddenVar 0</FONT>
<FONT COLOR="#000000"> &gt;</FONT>
<FONT COLOR="#000000"> &gt; And you're done...</FONT>

<FONT COLOR="#000000">mfgasd.r</FONT>
<FONT COLOR="#000000">IOhannes</FONT>


</PRE>
        </BLOCKQUOTE>
        <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Dan Wilcox
robotcowboy.com
</PRE>
</TD>
</TR>
</TABLE>
        <FONT COLOR="#000000">&lt;tk_file_dialog.png&gt;&lt;tk_file_dialog_test.tcl&gt;</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE TYPE=CITE>
        <FONT COLOR="#000000">_______________________________________________</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE TYPE=CITE>
        <FONT COLOR="#000000"><A HREF="mailto:PD-list@iem.at">PD-list@iem.at</A> mailing list</FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE TYPE=CITE>
        <FONT COLOR="#000000">UNSUBSCRIBE and account-management -&gt; <A HREF="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</A></FONT>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">----------------------------------------------------------------------------</FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT COLOR="#000000">&quot;It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.&quot;, from &quot;The Idols of Environmentalism&quot;, by Curtis White</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Dan Wilcox
robotcowboy.com
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>