diff bin/curvecalc @ 708:10ee0756a119

new python console Ignore-this: e6f8fa24c730e3cf8ed76be3fc1dcd01
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 10 Jun 2012 09:45:56 +0000
parents c4a38a247b26
children e94989da079c
line wrap: on
line diff
--- a/bin/curvecalc	Sun Jun 10 08:54:17 2012 +0000
+++ b/bin/curvecalc	Sun Jun 10 09:45:56 2012 +0000
@@ -32,6 +32,7 @@
 from light9.curvecalc.subterm import read_all_subs, savekey, graphPathForSubterms
 from light9.curvecalc.subtermview import add_one_subterm
 from light9.curvecalc.output import Output
+from light9.gtkpyconsole import togglePyConsole
 
 def makeGraph():
     graphOrig = showconfig.getGraph()
@@ -111,6 +112,9 @@
         # threads. I don't know whose they are.
         os.kill(os.getpid(), signal.SIGKILL)
 
+    def onPythonConsole(self, item):
+        togglePyConsole(self, item, self.__dict__)
+        
     def onSeeCurrentTime(self, item):
         dispatcher.send("see time")