console: catch help()

This commit is contained in:
ThomasV 2013-02-25 22:52:09 +01:00
parent 1f3f6b19e2
commit dc466142d3
1 changed files with 5 additions and 0 deletions

View File

@ -177,6 +177,11 @@ class Console(QtGui.QPlainTextEdit):
QtCore.QCoreApplication.processEvents()
self.skip = not self.skip
if command == 'help()':
self.appendPlainText("no help here!")
self.newPrompt()
return
sys.stdout = stdoutProxy(self.appendPlainText)
try:
try: