[Python-bugs-list] Tkinter wm_colormapwindows doesn't work w/o breaking Tkinter encapsulation (PR#107)

aa8vb@yahoo.com aa8vb@yahoo.com
Thu, 14 Oct 1999 12:00:03 -0400 (EDT)

Full_Name: Randall Hopper
Version: 1.5.2
OS: IRIX 6.5.5f
Submission from: ethyl-f.rtpfddi.epa.gov (

In Tcl/Tk you can say:

   wm colormapwindows . {.frame.label .frame}

In Tkinter, one would think you could use:

   main.wm_colormapwindows( [ label, frame ] )

but this results in an error:

   TclError: wrong # arguments: must be "wm colormapwindows window

this is what is sent to Tk:
   ('wm', 'colormapwindows', '.269680944', 
    <Tkinter.Label instance at 101302e0>, 
    <Tkinter.Frame instance at 10130280>)

As a workaround, the following works (or at least Tk doesn't complain about 
it) but is obviously a hack:

  main.tk.call( "wm", "colormapwindows", main._w,
                '%s %s' % ( canvas._w, frame._w ) )