[IPython-dev] problems with qt4 threading
Fernando Perez
fperez.net at gmail.com
Thu Sep 6 12:55:31 EDT 2007
Hey Darren,
On 9/6/07, Darren Dale <dd55 at cornell.edu> wrote:
> I just got a response from Trolltech. The support engineer said that if we
> continuously receive these warning messages, it means we are calling
> qapplication.exec_ over and over again, which is we shouldnt be doing.
>
> He also said that the warning messages can be suppressed if the global
> QT_NO_WARNING_OUTPUT is defined
> (http://doc.trolltech.com/4.3/qtglobal.html#qWarning). I tried adding
>
> global QT_NO_WARNING_OUTPUT
> QT_NO_WARNING_OUTPUT = True
>
> to IPShellQt4.__init__, but it didnt have any effect. Does anyone know if, and
> if so why, ipython is calling exec_() at each timeout?
I didn't write that code (I think you did), but looking into
IPython.Shell, I see this in mainloop() of the Qt4 shell (line 1003):
while True:
if self.IP._kill: break
QtGui.qApp.exec_()
self.join()
You may want to play with that...
Cheers,
f
More information about the IPython-dev
mailing list