-------- Original Message --------
Subject: zenity plugin for Pd 0.43 WAS: magicglass WAS: call for testers for L2Ork iteration of pd-extended (based on 0.42.x branch)
From: Hans-Christoph Steiner <
hans@at.or.at>
To: Lorenzo Sutton <
lsutton@libero.it>
CC:
pd-list@iem.at Date: 11/28/2010 02:00 AM
On Nov 25, 2010, at 6:27 AM, Lorenzo Sutton wrote:
Hans-Christoph Steiner wrote:
On Nov 24, 2010, at 10:59 PM, Ivica Ico Bukvic wrote:
(and a random aside, perhaps you'd be interested in getting Pd to use
the GTK open panel? I've always hated the Tcl/Tk one).
How would one go about doing this?
I believe that gnocl is the thing that you are looking for:
http://wiki.tcl.tk/5151
Actually a really 'quick and dirty' solution would be to call zenity [1] from within the tk.. Which IMHO is better than the Tk file opener.. Attached a version of pd.tk (0.42.5-extended-rc5 linux) which will try touse zenity for open, falling back to Tk if zeniy is not found (sorry my tcl is really really rusty :-)
Lorenzo.
[1]: http://freshmeat.net/projects/zenity
That would make a great GUI plugin for Pd 0.43. Basically the plugin would just override pdtk_openpanel and pdtk_savepanel (now in pd/tcl/wheredoesthisgo.tcl). Just 'rename' the existing ones in your plugin, then create your own procs with the same names.
.hc
The GUI plugin thing in 0.43 is pretty new to me.. Anything I can read to learn about it?