[Tkinter-discuss] winfo_id on OS/X
Kevin Walzer
kw at codebykevin.com
Wed Dec 23 20:06:28 EST 2015
On 12/22/15 12:04 PM, Jeff Hultquist wrote:
> I am trying to use tkinter with the Panda3D (panda3d.org
> <http://panda3d.org>) graphics library. I want to position a
> graphics window into a tkinter frame.
>
> Attached below is some sample code that uses the frame.winfo_id() as
> the argument to Panda3D’s setParentWindow method.
>
> This works on Linux and Windows, but seg-faults on OS/X. It appears
> the winfo_id is not valid on OS/X.
>
>
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
Perhaps an older version of Tk is being used? What version of OS X?
--Kevin
--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20151223/e991849c/attachment.html>
More information about the Tkinter-discuss
mailing list