[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] pygame.error: video system not initialized



Hi DROID,

I was being deliberately vague because I understand Alex is a student, and this is a project (?). As for the crtl-down, that doesn't appear to be Pygame. It doesn't cause a window switch on me for instance. So it is being handled before it reaches Pygame. Could it be an Accessibility feature?

Lenard

DR0ID wrote:
On 21.05.2010 22:14, Alex Hall wrote:
Well, it was not doing anything anyway, so I commented it out. The
error is now gone, but my ctrl-down is still acting very strangely,
acting like I had hit alt-tab or another keystroke to switch focus out
of the pygame window and into the window behind it.
Hi

Take a look at line 38, there you quit pygame, but in line 68 (which you took out) you tell the loop to continue. If you quit pygame and still call pygame.event.get() you get the video not initialized error (took me a while to see what Lenard said).

For the odd behavior of you ctrl-down, I'm not sure what should happen, so I cant tell if it is doing what you want it to do.

~DR0ID