Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2009-03-12 21:59:35 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2009-03-12 21:59:35 (GMT)
commite1070ebefc7252fc35c434bcd2d01b9b97adafda (patch)
tree74949228bcebe54e5e9a9ce48772a3f4d65dcfd3
parenta3dcc8d14eef9fffbacfa833f12e3ba1e9f5ced2 (diff)
Factorial button inserts fac()
-rw-r--r--toolbars.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolbars.py b/toolbars.py
index 478b681..77f6811 100644
--- a/toolbars.py
+++ b/toolbars.py
@@ -167,7 +167,7 @@ class AlgebraToolbar(gtk.Toolbar):
self.insert(LineSeparator(), -1)
self.insert(IconToolButton('algebra-fac', _('Factorial'),
- lambda x: calc.button_pressed(calc.TYPE_OP_POST, '!'),
+ lambda x: calc.button_pressed(calc.TYPE_FUNCTION, 'fac'),
lambda x: calc.button_pressed(calc.TYPE_TEXT, 'help(fac)')), -1)
class TrigonometryToolbar(gtk.Toolbar):