[PyQt] ipython, pdb and pyQT

Ville M. Vainio vivainio at gmail.com
Tue Jul 14 07:50:20 BST 2009


On Mon, Jul 13, 2009 at 5:03 PM, TheLonelyStar<nabble2 at lonely-star.org> wrote:

> I am trying to debug a pyQt application from ipython using pdb.
> I get lots of
>
> QCoreApplication::exec: The event loop is already running

If you are on Linux, you may want to explore PuDB (
http://pypi.python.org/pypi/pudb ). It has the huge advantage of not
using readline.

Another thing to google for is pyqtRemoveInputHook.

One thing to try is *not* doing QCoreApplication::exec (just remove
exec_ from your program). readline spins the mainloop in itself
(PyOS_InputHook), so your events get handled.

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


More information about the PyQt mailing list