From c00d3a34eb0e17ac21965f83abdd58032e808890 Mon Sep 17 00:00:00 2001 From: ecdsa Date: Mon, 4 Mar 2013 17:47:51 +0100 Subject: [PATCH] help for functions --- gui/qt_console.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gui/qt_console.py b/gui/qt_console.py index 471a7408e..123c0c888 100644 --- a/gui/qt_console.py +++ b/gui/qt_console.py @@ -191,6 +191,11 @@ class Console(QtGui.QPlainTextEdit): QtCore.QCoreApplication.processEvents() self.skip = not self.skip + if type(self.namespace.get(command)) == type(lambda:None): + self.appendPlainText("'%s' is a function. Type '%s()' to call it."%(command, command)) + self.newPrompt() + return + sys.stdout = stdoutProxy(self.appendPlainText) try: try: