Awesome! Please submit a patch to the tracker.
http://puredata.info/dev/patchtracker
If you want to become a committer, then introduce yourself to pd-
dev. You can search the archives for examples of previous
introductions.
.hc
On Apr 3, 2008, at 5:30 PM, danomatika wrote:
Sorry.
set ::tk::dialog::file::showHiddenBtn 1
set ::tk::dialog::file::showHiddenVar 0
This doesn't work, but the code from my test script does. I
inserted it after the Pd-Extended font hacks, around line 42.
<code>
# begin hack to hide hidden files/folder in tk browser on unix
----------
if {$pd_nt == 0} {
# load the dialog once, otherwise setting the vars will not work
catch {tk_getOpenFile -with-invalid-argument}
# change the environment variables
namespace eval ::tk::dialog::file {
variable showHiddenBtn 1
variable showHiddenVar 0
}
}
# end hidden files/folder hack ------------------
</code>
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?
Someone else try this in Linux.
On Thu, 2008-04-03 at 17:11 -0400, Hans-Christoph Steiner wrote:
You should be able to set that variable in pd.tk and have it work
without modifying the other file. Try just adding
set ::tk::dialog::file::showHiddenBtn 1
set ::tk::dialog::file::showHiddenVar 0
Somewhere near the top of the pd.tk.
.hc
On Apr 2, 2008, at 2:17 PM, danomatika wrote:
IOhannes, you found the magic bullet (or forum post, that is)!
Awesome, I can confirm this works in a little test script and
screenshot. It's a button to toggle
hidden file display as expected.
On Wed, 2008-04-02 at 10:55 +0200, IOhannes m zmoelnig wrote:
Hans-Christoph Steiner wrote:
> This would be huge, it would greatly help the newbies. In
workshops,
> a lot of people had trouble with those open/save panels.
>
> There are quite a few apps written with Tcl/Tk for GNU/Linux,
so I am
> sure we are not the first to want this feature. I would be very
> surprised if another Tcl/Tk app hasn't solved this already.
according to http://www.groupsrv.com/computers/about266840.html
it is
acutally already built into tk-8.4 but not exposed!
quoting this article:
>
> 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...
mfgasd.r
IOhannes
--
Dan Wilcox
robotcowboy.com
<tk_file_dialog.png><tk_file_dialog_test.tcl>
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/
listinfo/pd-list
---------------------------------------------------------------------
-------
"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
--
Dan Wilcox
robotcowboy.com
------------------------------------------------------------------------
----
http://at.or.at/hans/
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list