<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><br></div><div>Awesome!  Please submit a patch to the tracker.</div><div><br></div><div><a href="http://puredata.info/dev/patchtracker">http://puredata.info/dev/patchtracker</a></div><div><br></div><div>If you want to become a committer, then introduce yourself to pd-dev.  You can search the archives for examples of previous introductions.</div><div><br></div><div>.hc</div><div><br></div><br><div><html>On Apr 3, 2008, at 5:30 PM, danomatika wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite">  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.  I inserted it after the Pd-Extended font hacks, around line 42.<br> <br> &lt;code><br> <br> # begin hack to hide hidden files/folder in tk browser on unix ----------<br> if {$pd_nt == 0} {<br>     # load the dialog once, otherwise setting the vars will not work<br>     catch {tk_getOpenFile -with-invalid-argument}<br> <br>     # change the environment variables<br>     namespace eval ::tk::dialog::file {<br>     variable showHiddenBtn 1<br>     variable showHiddenVar 0<br>     }<br> }<br> # end hidden files/folder hack ------------------<br> <br> &lt;/code><br> <br> Now open/save/saveas dialogs hide hidden files and show the toggle button.  Awesome!  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.  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.  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">> This would be huge, it would greatly help the newbies.  In workshops,  </font>
<font color="#000000">> a lot of people had trouble with those open/save panels.</font>
<font color="#000000">> </font>
<font color="#000000">> There are quite a few apps written with Tcl/Tk for GNU/Linux, so I am  </font>
<font color="#000000">> sure we are not the first to want this feature.  I would be very  </font>
<font color="#000000">> 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"> ></font>
<font color="#000000"> > If you have Tcl/Tk 8.4.12, find the file "tkfbox.tcl" in your Tk</font>
<font color="#000000"> > installation. At line 777, you will see:</font>
<font color="#000000"> ></font>
<font color="#000000"> > set ::tk::dialog::file::showHiddenBtn 0</font>
<font color="#000000"> > set ::tk::dialog::file::showHiddenVar 1</font>
<font color="#000000"> ></font>
<font color="#000000"> > Replace them by:</font>
<font color="#000000"> ></font>
<font color="#000000"> > set ::tk::dialog::file::showHiddenBtn 1</font>
<font color="#000000"> > set ::tk::dialog::file::showHiddenVar 0</font>
<font color="#000000"> ></font>
<font color="#000000"> > 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%"> <tbody><tr> <td> <pre>-- 
Dan Wilcox
robotcowboy.com
</pre> </td> </tr> </tbody></table>        <font color="#000000">&lt;tk_file_dialog.png>&lt;tk_file_dialog_test.tcl></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 -> <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">"It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.", from "The Idols of Environmentalism", 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%"> <tbody><tr> <td> <pre>-- 
Dan Wilcox
robotcowboy.com
</pre> </td> </tr> </tbody></table>  </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br class="khtml-block-placeholder"></div><div>----------------------------------------------------------------------------</div><div><br class="khtml-block-placeholder"></div><div>                                              <a href="http://at.or.at/hans/">http://at.or.at/hans/</a></div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>