On 5/21/10, Lenard Lindstrom <le...@telus.net> wrote: > Hi DROID, > > I was being deliberately vague because I understand Alex is a student, > and this is a project (?). I am a student, but my first (and only) assignment regarding Battleship was a couple years ago, in Java, and ran at the command line. I have taken on its updating, translation (well, I am really just writing it from scratch again, but in Python), and adding a gui as a summer project; my own time, no assignment at all. In fact, I am done with classes until September (thankfully) and all next year will very probably not include any actual programming at all (more computer theory and math...) > 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? Good thought. I will turn off my screen reader and see if it does the same thing. When I implemented a navigation system much like this in Python last year I had no trouble, but who knows what updates will do do small things like this? I will also triple-check my movement functions (nav.py) but they should be correct, and definitely should not be moving me out of the pygame window entirely. > > 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 > >
-- Have a great day, Alex (msg sent from GMail website) mehg...@gmail.com; http://www.facebook.com/mehgcap