From 1587e845fc046bb63c81a0babc155186bcaf2fe7 Mon Sep 17 00:00:00 2001 From: Daniel Francis Date: Fri, 21 Dec 2012 02:58:55 +0000 Subject: Bug fixes Signed-off-by: Daniel Francis --- (limited to 'activity.py') diff --git a/activity.py b/activity.py index e54bbd1..b61d732 100644 --- a/activity.py +++ b/activity.py @@ -159,7 +159,7 @@ class PhysicsActivity(activity.Activity): self.radioList[button] = c.name def stop_play_cb(self, button): - pygame.event.post(sugargame.eventwrap.Event(pygame.USEREVENT, + pygame.event.post(pygame.event.Event(pygame.USEREVENT, action="stop_start_toggle")) self.stop_play_state = not self.stop_play_state # Update button @@ -171,8 +171,8 @@ class PhysicsActivity(activity.Activity): self.stop_play.set_tooltip(_("Start")) def radioClicked(self, button): - pygame.event.post(sugargame.eventwrap.Event(pygame.USEREVENT, - action=self.radioList[button])) + pygame.event.post(pygame.event.Event(pygame.USEREVENT, + action=self.radioList[button])) def _focus_event(self, event, data=None): """Send focus events to pygame to allow it to idle when in background. -- cgit v0.9.1