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

Re: [pygame] changes from pygame 1.7.1 to pygame 1.8.1



Hi,

About the "F10 problem", here is a test script with the instructions included.

> 2008/8/16 René Dudfield <renesd@xxxxxxxxx>:
> > hi,
> >
> > thanks for the report.
> >
> > If you could make a small test case that crashes, or just post the
> > function body that crashes that'd be a big help in tracking down the
> > problem.
> >
> >
> > cu.
import time

import pygame
from pygame.locals import *


print """
1. press F10 then press the down arrow key twice then press Enter:
 - with Windows XP and pygame 1.8.1, it starts the window's menu
  and moves the window until Enter is pressed again and remembers
  some events during the window's move but send them all at once
 - with Windows XP and pygame 1.7.1, it doesn't
2. press Escape to quit
"""
pygame.display.init()
pygame.display.set_mode((800, 600))
while True:
    e = pygame.event.wait()
    if e.type == KEYDOWN:
        if e.key == K_F10:
            print "F10"
        elif e.key == K_DOWN:
            print "DOWN"
        elif e.key == K_RETURN:
            print "RETURN"
        elif e.key == K_ESCAPE:
            break
pygame.display.quit() # for IDLE