Set labels for toolbuttons

This commit is contained in:
Aleksey Lim 2009-08-06 18:40:44 +00:00
parent d0485cb515
commit d02ab6bb9a
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class ActivityToolbarButton(ToolbarButton):
toolbar.stop.hide()
ToolbarButton.__init__(self, page=toolbar, **kwargs)
self.props.label = _('Activity toolbar')
from sugar.activity.activity import get_bundle_path
bundle = ActivityBundle(get_bundle_path())

View File

@ -94,5 +94,6 @@ class RadioPalette(Palette):
if not isinstance(parent, RadioMenuButton):
return
parent.props.label = button.palette_label
parent.set_icon(button.props.icon_name)
parent.selected_button = button