Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/toolbars.py
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2008-02-11 23:10:56 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2008-02-11 23:10:56 (GMT)
commitaef167f876e73da856249c0c87b0198dbf62f68d (patch)
tree9700264fc0220d494398a25525d02f54b3dc7df3 /toolbars.py
parent56a20c6a050046f033ce86a684fc7be7aa212da6 (diff)
Language updates and inverse
Diffstat (limited to 'toolbars.py')
-rw-r--r--toolbars.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolbars.py b/toolbars.py
index 6e478b2..21e6593 100644
--- a/toolbars.py
+++ b/toolbars.py
@@ -104,6 +104,10 @@ class AlgebraToolbar(gtk.Toolbar):
lambda x: calc.button_pressed(calc.TYPE_FUNCTION, 'sqrt'),
lambda x: calc.button_pressed(calc.TYPE_TEXT, 'help(sqrt)')), -1)
+ self.insert(IconToolButton('x<sup>-1</sup>', _('Inverse'),
+ lambda x: calc.button_pressed(calc.TYPE_OP_POST, '^-1'),
+ lambda x: calc.button_pressed(calc.TYPE_TEXT, 'help(sqrt)')), -1)
+
self.insert(LineSeparator(), -1)
self.insert(IconToolButton('e<sup>x</sup>', _('e to the power x'),