Re: winfo_id on OS/X

Kevin Walzer <[email protected]>
Newsgroups gmane.comp.python.tkinter
Organization WordTech Communications LLC
Message-ID <[email protected]>
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
[email protected]
https://mail.python.org/mailman/listinfo/tkinter-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.