Hi Math-
Could you post some of your key event code for us to look at?
On 4/3/10 8:03 AM, Mathieu Richardoz wrote:
Hello fellow PyGamers,
I have a very annoying problem with my PyGame installation under Mac
OS X 10.6 Snow Leopard.
When I execute a PyGame program from the Terminal, the keys
Hi Dan,
Thank you for your reply :-)
Here's the code:
---
import pygame
pygame.init()
screen = pygame.display.set_mode((640, 480))
background = pygame.Surface(screen.get_size())
background = background.convert()
background.fill((0, 0, 255))
box = pygame.Surface((25, 25))
box = box.convert()
Not really. In fact, it works fine on my 10.6.2 MacBook Pro.
A difference would be that I use ActivePython rather that MacPorts Python.
Does the screen appear on your machine? The red box just doesn't move?
On 4/3/10 8:54 AM, Mathieu Richardoz wrote:
Hi Dan,
Thank you for your reply :-)
Thanks Dan.
That's it, the red box doesn't move, and when I press the arrow keys,
I see the keypresses being echoed inside the terminal, which makes me
assume they are not being seen by my pygame window.
I've tried to implement other event types, such as MOUSEBUTTONUP and
MOUSEBUTTONDOWN and
I believe I installed the binary from the PyGame website after
installing ActivePython.
No trouble at all.
On 4/3/10 9:05 AM, Mathieu Richardoz wrote:
Thanks Dan.
That's it, the red box doesn't move, and when I press the arrow keys,
I see the keypresses being echoed inside the terminal,
Thanks a lot for pointing me to ActivePython, it's working like a
charm, and I didn't even have to reinstall PyGame :D
I am now wondering if maybe, juste maybe, I could run my Django
projects on top of this Python as well, but I guess that is well
beyond the scope of this list, so I'll shut up
Glad it worked Math.
On 4/3/10 9:17 AM, Mathieu Richardoz wrote:
Thanks a lot for pointing me to ActivePython, it's working like a
charm, and I didn't even have to reinstall PyGame :D
I am now wondering if maybe, juste maybe, I could run my Django
projects on top of this Python as well, but I