diff options
Diffstat (limited to 'activity.py')
-rw-r--r-- | activity.py | 7 |
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) |