help for functions

This commit is contained in:
ecdsa 2013-03-04 17:47:51 +01:00
parent e16451556e
commit c00d3a34eb
1 changed files with 5 additions and 0 deletions

View File

@ -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: