The Pd Vanilla 0.46-7 Windows distribution includes tcl/tk 8.5 and a widget demo.
The demo can be opened with the message
exec wish85.exe $::sys_libdir/lib/tk8.5/demos/widget
pasted into the "tcl prompt:" + <enter>
Initially I am trying to find a way to send a message directly to that prompt from a patch, in a similar manner to [; pd(
That seems to have been expressly omitted from the console build.
There is a widget editor available (vtcl) which makes widget building more accessible for noobs like myself.
If an object or objects exist, or could be compiled for Pure Data, that could open a widget and receive variables from user interaction with that widget then a patch could call widgets in -nogui mode (or not) and present a simple user interface to a "user" of the patch.
I have implemented (badly- but I am learning fast) an additional menu item for the Pd window which can communicate with tcl/tk (working for windows os) http://forum.pdpatchrepo.info/topic/9991/woof-a-new-window-menu-for-vanilla- tcl
Please let me know if I am "breaking" the license, and of course I will stop.
But for now I am stuck anyway.
David.
No snowden found in this message. Checked by AVG - www.avg.com Version: 2016.0.7163 / Virus Database: 4563/12106 - Release Date: 04/26/16
On 04/26/2016 01:23 PM, David Kent wrote:
pasted into the "tcl prompt:" + <enter>
i hope you are aware that the tcl-prompt has vanished with Pd-0.47, so you cannot really send anything there anymore.
otoh, you don't need a tclprompt to send tcl-commands to the Pd-GUI and have it interpreted. just send them directly, in C via the "sys_vgui()" function. on the patch-level, you could use hans' [sys_gui] object (in the "hcs" collection of objects) to acchieve that.
gmards IOhannes