The -use option to wish appears to not have been implemented in
the OS X port of Tcl/Tk. A small sample script:
frame .f -container 1
update idletasks
exec $argv0 -use [winfo id .f]
This script always errors with a message about the id not being a
valid Tk window. This message is a bit of a red-herring, as it
appears that in actual fact, no handler is registered to deal with
embedding the root window of wish (i.e.
Tk_MacOSXSetEmbedHandler is never called - in macosx/
tkMacOSXEmbed.c).
As -use/-container appear to be implemented and working
correctly for toplevels in a single wish app, I suspect it should be a
small amount of work to add to code to implement the -use option
to wish. I'll have a look, and see if I can come up with a patch.
Logged In: YES
user_id=32170
Recent discussion on the mac-tcl mailing list indicates
there is no current way to get a valid window id from one
process to another. This suggests it will be hard to fix
this bug.