Menu

#1656 TkAqua: -use option to wish not implemented on OS X

obsolete: 8.4.5
open
75. wish (49)
4
2006-06-18
2004-02-11
Neil Madden
No

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.

Discussion

  • Vince Darley

    Vince Darley - 2004-06-03

    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.

     
  • Vince Darley

    Vince Darley - 2004-06-03
    • summary: -use option to wish not implemented on OS X --> TkAqua: -use option to wish not implemented on OS X
     
  • Daniel A. Steffen

    • priority: 5 --> 4
     
MongoDB Logo MongoDB