Escape '_' in button string
issue5012 review22491004
This commit is contained in:
1 parent
bb12565cf8
commit
d8638c46cc
2 files changed
+2
-3
No files matched your search
@@ -1,3 +1,4 @@
|
||||
* Escape '_' in button string
|
||||
* Export selected records only
|
||||
* Use HTML for RichText widget
|
||||
* Change Progressbar to work with float between 0 and 1
|
||||
|
||||
@@ -9,9 +9,7 @@ class Button(gtk.Button):
|
||||
|
||||
def __init__(self, attrs=None):
|
||||
self.attrs = attrs or {}
|
||||
label = attrs.get('string', '')
|
||||
if '_' not in label:
|
||||
label = '_' + label
|
||||
label = '_' + attrs.get('string', '').replace('_', '__')
|
||||
super(Button, self).__init__(label=label, stock=None,
|
||||
use_underline=True)
|
||||
self._set_icon(attrs.get('icon'))
|
||||
|
||||
Reference in new issue
Block a user