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.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)