[IPython-User] lib/guisupport.is_event_running_qt4 lying?

MinRK benjaminrk@gmail....
Sat Nov 3 22:58:04 CDT 2012

The *frontend* runs Qt, so until you do something like `%gui qt` or `%pylab
then it should not return True (even `PySide in sys.modules` should be

For example:

$> ipython qtconsole

No eventloop enabled, should be false:

In [1]: from IPython.lib import guisupport

In [2]: guisupport.is_event_loop_running_qt4()

Out[2]: False

Enable eventloop:

In [3]: %gui qt

Qt is running, should be True:

In [4]: guisupport.is_event_loop_running_qt4()

Out[4]: True

Which all seems correct to me.


On Sat, Nov 3, 2012 at 8:49 PM, Peter Wang <pwang@streamitive.com> wrote:

> Hey everyone,
> Is the IPython.lib.guisupport stuff used anymore?  After invoking
> "ipython qtconsole" (which works fine), calling
> "is_event_loop_running_qt4()" returns False.
> If this code is not used anymore, then what is the proper way to
> detect that the event loop is running?
> I'm running 0.13 via Anaconda (Python 2.7.3, 64-bit, OSX, PySide).
> Thanks,
> Peter
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20121103/90594a73/attachment.html 

More information about the IPython-User mailing list