Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2014-01-20 00:31:00 (GMT)
committer Walter Bender <walter@sugarlabs.org>2014-01-20 00:31:00 (GMT)
commit44a008996d1683ed09c165d56c760587e2930316 (patch)
treec9885a11151086f89dac46ab21a17300e7180456
parentad96915f0eacda8080606a28b9a68c191137b5ea (diff)
more tweaks to radio buttons
-rw-r--r--activity.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/activity.py b/activity.py
index bde2e81..77e071f 100644
--- a/activity.py
+++ b/activity.py
@@ -288,12 +288,10 @@ class PhysicsActivity(activity.Activity):
grid.attach(button, i, s, 1, 1)
self.game.toolList[tool.name].buttons[s].append(button)
button.show()
- # Radio buttons are not highlighting in the palette
- # so adding highlight by hand
if settings['active'] == settings['icons'][i]:
button.set_icon_name(settings['icons'][i] + \
'-selected')
- button.set_active(True) # Why doesn't this work?
+ button.set_active(True)
return grid
else:
return None
@@ -301,6 +299,8 @@ class PhysicsActivity(activity.Activity):
def _palette_icon_clicked(self, widget, toolname, s, value_name, value):
for tool in tools.allTools:
if tool.name == toolname:
+ # Radio buttons are not highlighting in the palette
+ # so adding highlight by hand
setting = self.game.toolList[tool.name].palette_settings[s]
for i, button in enumerate(
self.game.toolList[tool.name].buttons[s]):