I have got a PyQT widget interpreter working, the code picked up from here is as follows:
import os import re import sys import code from PyQt4.QtGui impo
I have an open-source PyQt based Python interpreter that you can find here: http://docs.projexsoftware.com/api/projexui/
The specific class is the XConsoleEdit found in projexui.widgets.xconsoleedit. It has auto-completion built-in.
Hope that helps!