[Tkinter-discuss] winfo_id on OS/X

Michael Lange klappnase at web.de
Wed Dec 23 20:46:12 EST 2015


Hi,

On Wed, 23 Dec 2015 20:06:28 -0500
Kevin Walzer <kw at codebykevin.com> wrote:

(...)
> >
> Using Tk 8.6.4 / trunk on OS X 10.11, the following works just fine for
> me:
> 
>  >>> import tkinter
>  >>> frame = tkinter.Tk()
>  >>> id = frame.winfo_id()
>  >>> print(id)
> 140237681823504

quoting the link Jeff provided (apparently from "man winfo"):

"On the Macintosh the value has no meaning outside Tk."

I guess (although I do not have any experience with Tkinter on the
Mac) that this value (meaning the "140237681823504") is not recognized by
"Mac-Windows" as a valid window-identifier by the Macintosh's window
manager (or which ever instance may be responsible for that).

Best regards (and a nice Christmas to all of you and your loved ones!)

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Love sometimes expresses itself in sacrifice.
		-- Kirk, "Metamorphosis", stardate 3220.3


More information about the Tkinter-discuss mailing list