diff options
author | Gary Martin <gary@garycmartin.com> | 2010-07-28 02:08:56 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2010-07-28 02:08:56 (GMT) |
commit | ad171eea5b432653390840c72c07a39152cdc6e1 (patch) | |
tree | d443b99d5e20c5d751b3bfdd30b8cea5d2943ae3 /toolbars.py | |
parent | d5a3daba8ef3d5c068175f3e9f5ff4628ebae2a7 (diff) |
Added icons and updated toolbar code for displaying results in base 2, 8, 10 and 16 for enhancement SL #1332
Diffstat (limited to 'toolbars.py')
-rw-r--r-- | toolbars.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/toolbars.py b/toolbars.py index 222ed36..1076c3d 100644 --- a/toolbars.py +++ b/toolbars.py @@ -310,8 +310,13 @@ class MiscToolbar(gtk.Toolbar): lambda x: self.update_digits(x, calc), _('Number of shown digits')), -1) - el = ['10', '16', '2', '8'] - target_toolbar.insert(TextToggleToolButton(el, + el = [ + {'icon': 'base-10', 'html': '10'}, + {'icon': 'base-2', 'html': '2'}, + {'icon': 'base-16', 'html': '16'}, + {'icon': 'base-8', 'html': '8'} + ] + target_toolbar.insert(IconToggleToolButton(el, lambda x: self.update_int_base(x, calc), _('Integer formatting base')), -1) |