470,643 Members | 1,581 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,643 developers. It's quick & easy.

glutInit and wxPython on Mac OSX

I seem to have uncovered a problem when using glutInit alongside
wxPython on Mac OSX. If glutInit is called prior to creating a
wx.App, many window and mouse events are either lost, not generated,
or misgenerated for the glcanvas. However, if glutInit is called
after the wx.App has been created then all is well.

Has anyone ran across this issue before? If so, why does this order
matter or affect the wx Event system?

--artie

Feb 5 '07 #1
1 1806
Artie wrote:
I seem to have uncovered a problem when using glutInit alongside
wxPython on Mac OSX. If glutInit is called prior to creating a
wx.App, many window and mouse events are either lost, not generated,
or misgenerated for the glcanvas. However, if glutInit is called
after the wx.App has been created then all is well.

Has anyone ran across this issue before? If so, why does this order
matter or affect the wx Event system?
As to the whys and wherefores I cannot say, but there are many functions
within the Wx package that require the application to be running before
they can be called, so I presume glutInit makes use of some of those.

Note that you can create a wx.App without creating windows visible on
the screen.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Blog of Note: http://holdenweb.blogspot.com
See you at PyCon? http://us.pycon.org/TX2007

Feb 6 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by SeeBelow | last post: by
25 posts views Thread by BJörn Lindqvist | last post: by
1 post views Thread by timothy.williams | last post: by
1 post views Thread by James Stroud | last post: by
1 post views Thread by Rakesh | last post: by
22 posts views Thread by Glurt Wuntal | last post: by
reply views Thread by Robin Dunn | last post: by
4 posts views Thread by stef | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.