[visionegg] Re: newbie question about GUI experiments

Andrew Straw wrote:


The only other "GUI toolkit" I might suggest would be something built on SDL (or pygame, which is basically pySDL). I suggest this because SDL would probably be your best bet (down the track) for getting as close to the hardware as possible, because it is really a game programming library. Initially, you'd benefit because it's cross-platform and could allow you to test the vagaries of different OSs without re-writing your code. I recall hearing of one or two GUI toolkits that provide windows, buttons, sliders, and other widgets built on top of SDL (e.g. PyUI), but I haven't tried any of them.


If using a windows platform I can give a recommendation for pyUI, it has all the necessary widgets etc. to build quite an involved full screen gui. wxPython is a good starting point for an application gui, but if you want a full screen GUI then OpenGL (using the SDL libraries, pygame and pyUI) would be a great thing to use. A fantastic book on getting going with all of these things for Windows is "Game Programming With Python" (I don't recall the author as my copy of the book is at home). This can also give you some indication of timing limitations etc. using the toolkit.

If using other platforms, pyUI does compile for python (I have successfully compiled it for OS X), however not all of the widgets work, I think some of them rely on MS's direct draw API's - I may be wrong - but getting some things up on OS X or Linux is hit and miss. But it is getting there for a platform independent python based toolkit.



Good luck.

Cheers!
Andrew


On Jan 19, 2005, at 7:42 AM, Steven Lacey wrote:

Hi,
I am new to both the Python progamming language and VisionEgg. I
need to program an experiment and would like to know if VisionEgg
can do what I need. The experiment is a study of how users
interact with a GUI. It is at much higher level than the type of
experiments done in psychophysics, which VisionEgg was designed to
run (as I understand it). So, I have at least two problems to
solve. First, I need to create the GUI and define the methods for
interacting with the user. Ideally, I need methods for button
responses to both mouse clicks and keypresses. It seems that this
can be done in Python with either the Tkinter or wxPython module.
Is that right? Moreover, it does not seem as if I can build a GUI
using tools in VisionEgg itself? Is that right? My second problem
is timing. As the user interacts with the GUI, I want to record
with millisecond precision the time at which events occur. Would
displaying the GUI with VisionEgg, if possible, enable the kind of
temporal precision I require?
Thank you for any help you can provide,
Steve Lacey



====================================== The Vision Egg mailing list Archives: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html

Other related posts: