Tk Source Code

View Ticket
Login
Ticket UUID: 895082
Title: TkAqua: -use option to wish not implemented on OS X
Type: Bug Version: obsolete: 8.4.5
Submitter: tallniel Created on: 2004-02-11 19:29:07
Subsystem: 75. wish Assigned To: das
Priority: 4 Severity:
Status: Open Last Modified: 2006-06-18 15:45:56
Resolution: None Closed By:
    Closed on:
Description:
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.
User Comments: vincentdarley added on 2004-06-03 16:17:30:
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.