Refresh Button labels upon init.
This commit is contained in:
parent
adb33e7240
commit
a6413ed87f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue