On Thursday, June 21, 2012 1:28:57 PM UTC+2, Andreas Grätz wrote:
Hello,
is it possible to use pyglet as an canvas in tkinter?
Hi, I got it working years ago, here's a slightly modified version of togl.py, renamed toglwidget.py, and a couple of demos. You will need to drop togl17.dll and pkgIndex.tcl in your pythonXX\tcl directory. I've just run it in my XP 64 box and works fine.
Sorry for the comments in italian, it was really not meant to be published and I just unburied it from a very old backup.
What I would really love is to drop the dependency from toglXX.dll, which, at version 2.0 (see Sourceforge), is abandoned, again. Can't an Opengl context be created from a tkinter widget hwnd ? I definitely have not the expertise to judge if it is possible witch ctypes or how difficult it can be.