Hi all,Does anyone (hans?) know if Tk has a widget that will accept dropped files from the OS? I'd be happy to look into adding it to the library if anyone thinks it's possible (and points me in a general direction).
It would be really great to be able to drag a wav file onto my sampler to load them, and I'm sure there are many other uses as well.
(oh, and speaking of that, anyone know anything about adding a "proxy icon" to Pd windows (this would be an OS X only feature, I suppose)? Most OS X apps have one; you can drag from it to get a reference to the file you're working on (e.g. to copy it to the desktop) or right click it (cmd-click in tiger) to open a clickable hierarchy of the folders it's in, a great way to open the containing folder of a patch.)
Cheers Luke
Luke Iannini (pd) a écrit :
Hi all, Does anyone (hans?) know if Tk has a widget that will accept dropped files from the OS? I'd be happy to look into adding it to the library if anyone thinks it's possible (and points me in a general direction).
It would be really great to be able to drag a wav file onto my sampler to load them, and I'm sure there are many other uses as well.
(oh, and speaking of that, anyone know anything about adding a "proxy icon" to Pd windows (this would be an OS X only feature, I suppose)? Most OS X apps have one; you can drag from it to get a reference to the file you're working on ( e.g. to copy it to the desktop) or right click it (cmd-click in tiger) to open a clickable hierarchy of the folders it's in, a great way to open the containing folder of a patch.)
Cheers Luke
http://sourceforge.net/projects/tkdnd/
This libray should already exist since the code that is calling it is in pd.tk (proc open_file ), if you install the tkdnd library you will be able to drag and drop patch files. I don't know how to install it on osx, in windows it's in pd/lib/tk in linux it's in /usr/local/lib/tk while pd is in /usr/local/lib. You could make a GUI fork of openpanel that outputs the file path dragged into it? I use the ix library that require toxy/widget, but it would be cool to have a single external for this.
On Dec 17, 2007, at 6:57 PM, Luke Iannini (pd) wrote:
Hi all, Does anyone (hans?) know if Tk has a widget that will accept
dropped files from the OS? I'd be happy to look into adding it to
the library if anyone thinks it's possible (and points me in a
general direction).It would be really great to be able to drag a wav file onto my
sampler to load them, and I'm sure there are many other uses as well.
Someone did some work on that, it would require tkdnd. I think
Miller already the patch in u_main.tk, but you need to have tkdnd
installed to make it work. I think it would be great to have a a
number of these very handy Tcl/Tk extensions included in Pd-
extended. That's originally why I set up the 'extensions' section in
CVS. Want to take that on?
(oh, and speaking of that, anyone know anything about adding a
"proxy icon" to Pd windows (this would be an OS X only feature, I
suppose)? Most OS X apps have one; you can drag from it to get a
reference to the file you're working on ( e.g. to copy it to the
desktop) or right click it (cmd-click in tiger) to open a clickable
hierarchy of the folders it's in, a great way to open the
containing folder of a patch.)
This would be very nice!
.hc
Cheers Luke _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
As we enjoy great advantages from inventions of others, we should be
glad of an opportunity to serve others by any invention of ours; and
this we should do freely and generously. - Benjamin Franklin