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

Re: [pygame] Windows python2.4 pygame test binary installer. Please test!



Rene Dudfield wrote:
I'm not sure when that happened.  Will need to look into it.

Anyone else see this?

Well, everything seems to be normal over here. The button attribute of the MOUSEBUTTONDOWN event is 1 for the left mouse button, 2 for the middle button and 3 for the right button (and 4 and 5 for the wheel).
I've just checked with Python 2.2.2/pygame 1.5.3, Python 2.3.4/pygame 1.6.2 and Python 2.4 under WinXP.
If anyone wants to check their version, here's a little test script:


######################################################
import pygame
from pygame.locals import *

pygame.init()

pygame.display.set_mode((320,240))

running = True
while running:
    events = pygame.event.get()
    for e in events:
        if e.type==QUIT:
            running = False
        if e.type==MOUSEBUTTONDOWN:
            print e
######################################################


However, I have another thing. When initializing pygame with the new 2.4 version I get the following warning:


c:\python24\lib\site-packages\pygame\pkgdata.py:197: DeprecationWarning: The 'factory' argument to 'adapt()' will be removed in 1.0 return adapt(obj, IReadableFilePath, factory=resFactory)

I have PyProtocols 0.9.3 installed.
But apart from the above message everything seems to work fine.

- Matthias -