I have started a Wiki page on this:<br><a href="http://puredata.info/docs/developer/StartupPlugins">http://puredata.info/docs/developer/StartupPlugins</a><br>I'll expand it later today.<br><br>Andras<br><br><div class="gmail_quote">
On Mon, Nov 29, 2010 at 3:31 PM, Lorenzo Sutton <span dir="ltr"><<a href="mailto:lsutton@libero.it">lsutton@libero.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
[this was intended for the list by I sent it to Hans only by mistake - resending]<div class="im"><br>
<br>
-------- Original Message --------<br>
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)<br>
From: Hans-Christoph Steiner <<a href="mailto:hans@at.or.at" target="_blank">hans@at.or.at</a>><br>
To: Lorenzo Sutton <<a href="mailto:lsutton@libero.it" target="_blank">lsutton@libero.it</a>><br>
CC: <a href="mailto:pd-list@iem.at" target="_blank">pd-list@iem.at</a><br>
Date: 11/28/2010 02:00 AM<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
On Nov 25, 2010, at 6:27 AM, Lorenzo Sutton wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hans-Christoph Steiner wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
On Nov 24, 2010, at 10:59 PM, Ivica Ico Bukvic wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
(and a random aside, perhaps you'd be interested in getting Pd to use<br>
the GTK open panel? I've always hated the Tcl/Tk one).<br>
</blockquote>
<br>
How would one go about doing this?<br>
</blockquote>
<br>
I believe that gnocl is the thing that you are looking for:<br>
<br>
<a href="http://wiki.tcl.tk/5151" target="_blank">http://wiki.tcl.tk/5151</a><br>
</blockquote>
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 <a href="http://pd.tk" target="_blank">pd.tk</a> (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 :-)<br>
<br>
Lorenzo.<br>
<br>
[1]: <a href="http://freshmeat.net/projects/zenity" target="_blank">http://freshmeat.net/projects/zenity</a><br>
</blockquote>
<br>
<br>
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.<br>
<br>
.hc<br>
</blockquote></div>
The GUI plugin thing in 0.43 is pretty new to me.. Anything I can read to learn about it?<br>
<br>
This apporach (that's why 'quick and dirty') does have various limitations that I think couldn't be solved:<br>
- No way to have 'filetype' filters (I haven't seen a way to have ore than one with zenity)<br>
- Doesn't remember last opened directory (but maybe taht could be handled by the tk script)<br>
- Not exactly the 'standard' gnome open dialogue.<br>
<br>
Of course one could create two small independent gtk+ (or whatever gui) apps (executables) that let you select file in a "natve" look and feel spit a string out a string like zenity which is easily ingested y tk. I'm not sure how this could be made cross platform though.<br>
<br>
Lorenzo.<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
---------------------------------------------------------------------------- <br><div class="im">
<br>
Using ReBirth is like trying to play an 808 with a long stick. -David Zicarelli<br>
<br>
<br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br>