[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] pyui and other things
Hello, I don't know if this is the right place to do it, but I'd like to
ask some questions about pyui.
I dled the last version from its website and found a few problems.
No demo can work, because they are all looking for the pygame.locals
namespace. Of course renaming every pygame.locals.* to pygame.* works.
Then it doesn't seem to work at all in full screen using the standard gl
renderer. Some buttons are highlited when the pointer passes over them, but
it is not possible to move windows around, push buttons, etc.
Then one odd thing, if there is a button or pane with an image inside the
frame rate decreases to very low values (from ~50 to 6 or 7 FPS).
Also the OpenGL demos don't work, probably because of some change in PyOpenGL.
Did somebody have the same problems? It is possible to fix easily (don't
know a lot about gl).
Ah, sorry, I use Python 2.2 on windows and Pygame 1.4.
Second question:
I'm writing an application that extracts frames from an AVI file, then puts
them in a surface and blits them. One of the first version I made (now
lost, but I'll rewrite it) put the frames in a numeric array (copying the
data from a DIB) and then blitted them to a surface. The only "small"
problem is that the origin of the DIB environment is bottom left, so images
were blitted upside down, and that the RGB ordering is reversed (BGR). Of
course I can (and so I did) reorder the array (it is quite easy in NumPy),
but is there a better way of doing so? Maybe I should create a new method
to blit surfarrays in C? I fear that reordering the array in that way is a
bad performance hit.
Third question:
Some alternative UI for PyGame? I'd like to use windows drawn on an SDL
surface like pyui, but I'm really disappointed by pyui performances, I fear
that it would be hard to blit images as I'd like in a pyui window and
obtain a decent Frame Rate. Is there some pythonic alternative? I've seen
paragui, but it has no python support.
Fourth question:
in pygame, which way do you think is better in order to implement the event
handling code for a movie player?
I mean, separate thread, or other things?
There is some info in the pygame tutorials, but I'd like to hear from
people that uses pygame.
Thanks,
Riccardo
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org