I have started a Wiki page on this:
http://puredata.info/docs/developer/StartupPlugins
I'll expand it later today.

Andras

On Mon, Nov 29, 2010 at 3:31 PM, Lorenzo Sutton <lsutton@libero.it> wrote:
[this was intended for the list by I sent it to Hans only by mistake - resending]


-------- 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?

This apporach (that's why 'quick and dirty') does have various limitations that I think couldn't be solved:
- No way to have 'filetype' filters (I haven't seen a way to have ore than one with zenity)
- Doesn't remember last opened directory (but maybe taht could be handled by the tk script)
- Not exactly the 'standard' gnome open dialogue.

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.

Lorenzo.


----------------------------------------------------------------------------

Using ReBirth is like trying to play an 808 with a long stick.    -David Zicarelli





_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list