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

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
https://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to