[Pythonmac-SIG] problem importing OpenGL.Tk
patrickjmoran at earthlink.net
Thu Oct 16 01:58:02 EDT 2003
I downloaded wxPython, and played with the demos from RunDemo.
I tried the wxGLCanvas demo. Seemed a little balky to get the initial
image in the window, but then seemed OK. (Balky meaning the rendering
window starts blank, and I have to generate a bunch of mouse events
before anything appears). Next step for me is to experiment some
my own data.
Any helper apps for translating Tkinter to wxPython :-)?
On Monday, October 13, 2003, at 04:24 PM, Andrew Straw wrote:
> Bob Ippolito wrote:
>> On Monday, Oct 13, 2003, at 11:22 America/New_York,
>> bweiland at chisystems.com wrote:
>>> According to Bob Ippolito:
>>>> Unfortunately, you're out of luck. Togl has not been ported to OS X
>>>> yet, at least not for AquaTk. I just took a look at Togl and it
>>>> nontrivial to compile for OS X (at least a few hours). Your best
>>>> is to get rid of your dependency on Tk altogether and switch to
>>>> something like wxPython, pygame, GLUT, PyObjC + Cocoa, etc. for your
>>> Oddly enough, I was just going thru this same ordeal myself.
>>> Tk, if
>>> Togl worked, would probably still be the best option for portable
>>> GUI's that need OpenGL stuff, IMHO. Here's why I think so (and not
>>> to start a flame war):
>>> - tried wxPython - had weird problems with low framerate and
>>> compared to just drawing in a GLUT window (maybe this was just me?);
>>> besides, I like Tk better for a quick hacked-together interface;
>>> - pygame - would be good, but pyui doesn't seem to be working yet
>>> for GUI elements on OS X;
>>> - GLUT - not really enough GUI;
>>> - PyObjC - not portable, but otherwise nice;
>>> - also, PyQt would be great, but the license is restrictive (it
>>> precludes portability to Windows if you're using the GPL'ed version;
>>> expensive otherwise).
>>> Enough complaining -- I looked at trying to port it, but it
>>> like a lot of time I can't spend right now (since I really don't
>>> how the whole Tk side of things is put together). If anyone can
>>> some pointers that could shorten the time, I might try. If anyone
>>> inclined to do the port, there are at least two users who would want
>>> it ;)
>> I'll take a closer look at it later this week if I find the time.
> Recently, the maintainer of PyOpenGL has indicated that he's dropping
> Togl support (for Windows?) in the next release due to high
> maintenance requirements and limited usage. Not to discourage you
> from working on Togl, but I therefore think Tk may not be your best
> long-term cross-platform solution for OpenGL + GUI unless someone is
> willing to take over python/togl maintenance in general (and on the
> Mac in specific).
> I'm surprised you haven't had good luck with wx. Did you spend long
> trying to get it to work? How does the wxGLCanvas demo work for you?
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
More information about the Pythonmac-SIG