[visionegg] Re: Help with pyUI library OS X
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Tue, 08 Jun 2004 14:56:05 +0000
Kevin MacKenzie wrote:
As well as using the VisionEgg for presentation, I have been learning
how to implement OpenGL to create/generate visual stimuli. On a PC,
there is a library called pyUI, which allows you to overlay an OpenGL
window with other windows asking for user imput etc. Basically, an
OpenGL GUI library.
I have also had success with the Vision Egg and OpenGL on Mac OS X,
however, I haven't been able to get the pyUI libraries installed. I
was wondering if anyone in this list may have attempted, or had any
success with the installation on OS X (10.3.4 to be specific).
Thank you,
Kevin MacKenzie
Hi Kevin,
I haven't used PyUI, but the Vision Egg will probably need some
(hopefully slight) changes to use a new backend. Currently, the Vision
Egg creates an OpenGL context using pygame -- it would somehow have to
cooperate with PyUI to make sure they're happily sharing the same context.
The Vision Egg should be (if it isn't, it's a bug) well behaved with
respect to the OpenGL state machine. Therefore, I expect it'll play
well with PyUI or other OpenGL-based renderers provided that they are, too.
I wish you luck and ask that you report back any results here. I'd be
happy to help facilitate integrating any patches involved in getting the
Vision Egg to use a different backend for opening an OpenGL context.
In terms of getting PyUI running on OS X, I'd ask on the PyUI mailing
list and/or the pythonmac list at python.org...
Finally, if PyUI ends up being "too much", I've had good luck just using
VisionEgg.Text.Text to prompt a user to do something and using basic
pygame events to accept keystrokes, etc. I keep meaning to clean up and
simplify some psychophysics experiments we've done and create a demo
that demonstrates this kind of thing...
Cheers!
Andrew
======================================
The Vision Egg mailing list
Archives: //www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
Other related posts: