1. pygame
  2. Untitled project
  3. pygame

Commits

aholkner  committed d55e120

Post event fixed

  • Participants
  • Parent commits 2cbac72
  • Branches ctypes-soc

Comments (0)

Files changed (2)

File CHANGELOG

View file
  - pygame.mixer endevent callback fixed
  - pygame.draw.circle correct box for given radius
  - 24-bit surface to RGBX string supported if no color key is set
- - user event fix for ctypes 1.0.0
+ - user post event fix for ctypes 1.0.0
 
 Pygame-ctypes 0.08
 ------------------

File pygame/event.py

View file
                uevent.data1 == _USEROBJECT_CHECK2 and \
                uevent.data2 in _user_event_objects:
                 # An event that was posted; grab dict from local store.
-                id = sdl_event.data2.value
-                for key, value in _user_event_objects[id].items():
+                id = sdl_event.data2
+                for key, value in _user_event_objects[id].__dict__.items():
                     setattr(self, key, value)
                 # Free memory unless just peeking
                 if not keep_userdata: