On 15/08/2010 17:17, js wrote:
> Hi,
>
> So far, I've written my experiments in python, using pygame. I'm
> thinking about integrating some of the very very nice stuff from
> psychopy, but I also would hate not to be able to re-use the functions
> I already have. So my questions are:
> 1- How do I mix pygame functions with psychopy? How do I go from a
> pygame surface to a psychopy window (and the other way around, too).
I'm afraid the psychopy window is a pygame display with OpenGL support,
which wasn't compatible with pygame surfaces last I checked. But a) that
might have changed and b) it might have been on windows (where surfaces
are rendered using a DirectX backend).
What sort of things are you drawing?
What are the functions that you would be sad to lose?
If they're handy, maybe we can add them to PsychoPy (using OpenGL
instead of pygame commands) ;-) But it might be that you're doing
something that PsychoPy can already do.
> 2- I'm under ubuntu 10.04, with the latest version of psychopy, and
> the psychopy window function does not seem to support the option
> winType='pygame'. Is it a known bug?
Not known to me. What are the symptoms of 'does not seem to support'?
Jon
--
Dr. Jonathan Peirce
Nottingham Visual Neuroscience
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To post to this group, send email to psychop...@googlegroups.com.
To unsubscribe from this group, send email to psychopy-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/psychopy-users?hl=en.
Thanks for your very quick answer. There are mainly two things I would miss: 1- response scales, where the observer moves a cursor on a continuous scale to give his / her response;
Hi Jérôme,
Thanks for your very quick answer. There are mainly two things I would miss: 1- response scales, where the observer moves a cursor on a continuous scale to give his / her response;
as luck would have it, rating scales are now available in svn. (this is not yet documented on the web, nor available in the stand-alone releases but will be eventually).
2- some textures that I used to create directly through numarrays.
The other thing is the following: when in the demo codes I set winType='pygame' in the main window declaration, I get an empty gray window, without stimuli. When I get back to pyglet, i works nicely.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
--