Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorAlex Levenson <alexlevenson@laptop.org>2008-07-16 18:59:44 (GMT)
committer Alex Levenson <alexlevenson@laptop.org>2008-07-16 18:59:44 (GMT)
commit6279e36ec3ffa5415287c79f3ba6a45aaf70f76c (patch)
tree0e6bba074c371472fd8bad03891b289810d41a49 /activity.py
parentf5a0989c9088be56c9384c2e896a0d2c184065ac (diff)
Fixed toolbar automation for good! Yayaya!
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/activity.py b/activity.py
index 1d0cda7..b0918dd 100644
--- a/activity.py
+++ b/activity.py
@@ -23,14 +23,9 @@ class PhysicsActivity(olpcgames.PyGameActivity):
# make a 'create' toolbar
create_toolbar = gtk.Toolbar()
- # get a list of all component classes
- componentsList = tools.local_classes
- componentsList.remove(tools.Tool)
- #hack (For now)
- componentsList.remove(pygame.Rect)
# make + add the component buttons
self.radioList = {}
- for c in componentsList:
+ for c in tools.allTools:
button = RadioToolButton(named_icon=c.icon)
button.set_tooltip(_(c.toolTip))
button.connect('clicked',self.radioClicked)