[PyQt] Re: PyQtShell

Ville M. Vainio vivainio at gmail.com
Sun Jan 18 18:23:15 GMT 2009


On Sun, Jan 18, 2009 at 7:47 PM, Frédéric
<frederic.mantegazza at gbiloba.org> wrote:

> On the other hand, as we only run ipython inside, for our application,
> something like PyQtShell should be enough. So I'll give it a try :o)

It should be relatively easy to add ipython support. I have actually
done it already for a "written-from-scratch" qt ui (currently using
QScintilla - I tried using QTextEdit first, but it was way too slow
for output-heavy operations like "find /").

The code has crap left from QTextEdit side, and it could use some
refactoring, but it should be short enough to see how you can add
IPython support to PyQtShell. Notably, it's "special" in that it uses
2 scintilla widgets (one for input, one for output - to make it easier
to enter/edit multiline code).

Get the code by:

https://code.launchpad.net/~ipython-dev/ipython/ipython-extensions

(look at / run qtipywidget.py).

Or web browser:
http://bazaar.launchpad.net/~ipython-dev/ipython/ipython-extensions/files/head:/ipy_qt/

-- 
Ville M. Vainio
http://tinyurl.com/vainio



More information about the PyQt mailing list