Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/activity.py b/activity.py
index 2115781..bcd8f1e 100644
--- a/activity.py
+++ b/activity.py
@@ -126,13 +126,13 @@ class PhysicsActivity(olpcgames.PyGameActivity):
firstButton = button
button.set_tooltip(c.toolTip)
button.set_accelerator(c.toolAccelerator)
- button.connect('clicked',self.radioClicked)
- create_toolbar.insert(button,-1)
+ button.connect('clicked', self.radioClicked)
+ create_toolbar.insert(button, -1)
button.show()
self.radioList[button] = c.name
# add the toolbars to the toolbox
- toolbox.add_toolbar(_("Create"),create_toolbar)
+ toolbox.add_toolbar(_("Create"), create_toolbar)
create_toolbar.show()
toolbox.show()
@@ -169,8 +169,8 @@ class PhysicsActivity(olpcgames.PyGameActivity):
firstButton = button
button.set_tooltip(c.toolTip)
button.set_accelerator(c.toolAccelerator)
- button.connect('clicked',self.radioClicked)
- create_toolbar.insert(button,-1)
+ button.connect('clicked', self.radioClicked)
+ create_toolbar.insert(button, -1)
button.show()
self.radioList[button] = c.name
return create_toolbar
@@ -187,7 +187,7 @@ class PhysicsActivity(olpcgames.PyGameActivity):
self.stop_play.set_icon('media-playback-start')
self.stop_play.set_tooltip(_("Start"))
- def radioClicked(self,button):
+ def radioClicked(self, button):
pygame.event.post(olpcgames.eventwrap.Event(pygame.USEREVENT, action=self.radioList[button]))