<!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. I inserted it after the Pd-Extended font hacks, around line 42.<BR>
<BR>
<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>
</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%">
<TR>
<TD>
<PRE>
--
Dan Wilcox
robotcowboy.com
</PRE>
</TD>
</TR>
</TABLE>
<FONT COLOR="#000000"><tk_file_dialog.png><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%">
<TR>
<TD>
<PRE>
--
Dan Wilcox
robotcowboy.com
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>