On Fri, Feb 21, 2003 at 03:21:11PM -0500, Mike C. Fletcher wrote:
> I actually wan't suggesting a particular fix :) . In fact, I haven't a
> clue why it's reporting a problem (I don't use Tkinter, and I have
> avoided wading into the Togl binding as much as humanly possible). If
> you can tell me what fix would be appropriate, I'll happily fix it :) .
> Otherwise it'll be a while as I find the time to explore what's going
> on so I can figure out how to fix it (unless Rene feels like spelunking
> and beats me to it, of course).
Hmm. The remark I made was completely off-base. The problem you see is
probably a Togl 1.6 bug, because Python is actually loading the right DLL.
Maybe stubs aren't working properly on win32 ? Or... maybe there was an
older version of Togl in your (Tcl/Tk) include path somewhere ?
> Aside: Togl is, at the moment, one of two unloved orphans in PyOpenGL
> (the other being GLE). Not because they're necessarily unlovely, but
> because I have had no use for them (and Tarn is no longer around to love
> them). People who would like to officially adopt these poor little
> sub-packages would be very welcome,
I've always wondered what relation OpenGL.Tk had to the Togl support in
Tkinter itself (which is even more minimal than the PyOpenGL support for it
:) In any case, I've used OpenGL.Tk a few times, but don't really like it
either, and I don't run Windows or own a Windows development platform to fix
the bugs there. I can show you what I meant with 'negating the need for the
tk-specific-version check': OpenGL.Tk currently modifies the Tcl/Tk
includepath to include a subdirectory of the module dir:
_default_root.tk.call('lappend', 'auto_path', os.path.join( \
sys.platform + "-tk" + _default_root.getvar("tk_version")))
That's no longer necessary, as the same Togl.so should work with all Tcl/Tk
versions since 8.1. I have some code that does that, and I would include a
patch, except that SourceForge seems to have issues and I can't get a CVS
diff :) Basically, it does this instead:
_default_root.tk.call('lappend', 'auto_path', os.path.dirname(__file__))
In fact, since the Togl version included in PyOpenGL is now just the
standard (but unreleased) 1.6, it should be possible just to get people to
install Togl 'system-wide'-like. Unfortunately, I don't know enough about
Tcl/Tk packaging and includepaths to know for sure, or know how to do that :P
Thomas Wouters <thomas@...>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!