From 6279e36ec3ffa5415287c79f3ba6a45aaf70f76c Mon Sep 17 00:00:00 2001 From: Alex Levenson Date: Wed, 16 Jul 2008 18:59:44 +0000 Subject: Fixed toolbar automation for good! Yayaya! --- (limited to 'activity.py') 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) -- cgit v0.9.1