Set labels for toolbuttons
This commit is contained in:
parent
d0485cb515
commit
d02ab6bb9a
@ -37,6 +37,7 @@ class ActivityToolbarButton(ToolbarButton):
|
|||||||
toolbar.stop.hide()
|
toolbar.stop.hide()
|
||||||
|
|
||||||
ToolbarButton.__init__(self, page=toolbar, **kwargs)
|
ToolbarButton.__init__(self, page=toolbar, **kwargs)
|
||||||
|
self.props.label = _('Activity toolbar')
|
||||||
|
|
||||||
from sugar.activity.activity import get_bundle_path
|
from sugar.activity.activity import get_bundle_path
|
||||||
bundle = ActivityBundle(get_bundle_path())
|
bundle = ActivityBundle(get_bundle_path())
|
||||||
|
@ -94,5 +94,6 @@ class RadioPalette(Palette):
|
|||||||
if not isinstance(parent, RadioMenuButton):
|
if not isinstance(parent, RadioMenuButton):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
parent.props.label = button.palette_label
|
||||||
parent.set_icon(button.props.icon_name)
|
parent.set_icon(button.props.icon_name)
|
||||||
parent.selected_button = button
|
parent.selected_button = button
|
||||||
|
Loading…
Reference in New Issue
Block a user