34 from code
import InteractiveInterpreter
36 from python_qt_binding
import QT_BINDING, QT_BINDING_VERSION
37 from python_qt_binding.QtCore
import Qt, Signal
43 _color_stdin = Qt.darkGreen
44 _multi_line_char =
':' 45 _multi_line_indent =
' ' 46 _prompt = (
'>>> ',
'... ')
50 super(PyConsoleTextEdit, self).
__init__(parent)
55 self._comment_writer.write(
'Python %s on %s\n' %
56 (sys.version.replace(
'\n',
''), sys.platform))
57 self._comment_writer.write(
58 'Qt bindings: %s version %s\n' % (QT_BINDING, QT_BINDING_VERSION))
63 self._interpreter_locals.update(newLocals)
67 self._interpreter.runsource(code)
def update_interpreter_locals(self, newLocals)
def _exec_code(self, code)
def __init__(self, parent=None)