[PyQt] QTermWidget bootstrapped in ipython seession ;)

Marcell Mars marcell.mars at gmail.com
Sun May 3 15:40:31 BST 2009


i wanted to start ipython session inside of QTermWidget[0] where that
would be the same ipython session from where i originally made the
QTermWidget.. with a little help from dtach[1]
http://dtach.sourceforge.net/ i did it...

if you do ipython profile like pasted here:
http://snipt.net/marcell/ipy_profile_pyqt4py-profile-for-ipython

and then start:
dtach -n /tmp/qtermwidgetsocket -r winch ipython -q4 -p pyqt4

you will end up in QTermWidget instance where, for example, you can type:
myTerm.resize(500,500) and it will resize itself...

everything works fine except QTermWidget freezes when ipython calls
page viewer (ie. more) or asks "Display all 342 possibilities? (y or
n)" after tab autocompletion.. it doesn't freeze when ipython asks "Do
you really want to exit ([y]/n)?"..

any clue why that happens?

[0] http://code.google.com/p/pyqt4-extrawidgets/source/browse/trunk/qtermwidget/README?spec=svn2&r=2
[1] http://dtach.sourceforge.net/


More information about the PyQt mailing list