Refresh Button labels upon init.

This commit is contained in:
Dimitri John Ledkov 2017-09-18 14:20:13 +01:00
parent adb33e7240
commit a6413ed87f
No known key found for this signature in database
GPG Key ID: CAC2D8B9CD2CA5F9
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ def _stylized_button(left, right, stocklabel, style):
class StyleAttrMap(AttrMap):
def __init__(self, *args, **kwargs):
label = kwargs.pop('label', stocklabel)
label = kwargs.pop('label', _(stocklabel))
btn = Btn(label, *args, **kwargs)
super().__init__(btn, style + '_button', style + '_button focus')
return StyleAttrMap