[PyKDE] exiting an application cleanly

Flávio Codeço Coelho fccoelho at fiocruz.br
Wed Mar 2 12:29:45 GMT 2005


On Wednesday 02 March 2005 07:37, Eli Yukelzon wrote:
Hi, 

I am not quite sure what you meant by mixing threads (I am new to pyQt), 
but...

I am not using threads explicitly( i.e., through threading/threads modules).

However, I start some processes with os.system that may be causing it.

I'll check my code for possible culprits.

thanks for your help

> It looks like you are mixing Qt threads and Python threads, which is
> not such a good idea (as suggested in PyQt docs)
> But most obviously, you have some thread in background, that doesn't
> receive the close signal, and therefor can't stop correctly.
>
>
> On Tue, 1 Mar 2005 14:42:15 -0300, Flávio Codeço Coelho
>
> <fccoelho at fiocruz.br> wrote:
> > Hi,
> >
> > My PyQT app has an exit button, that is connected with the default
> > "close" slot like this:
> >
> > self.connect(self.buttonExit,SIGNAL("clicked()"),self.close)
> >
> > when I press the exit button, the application ends but I get the
> > following from Python:
> >
> > Unhandled exception in thread started by <bound method Thread.__bootstrap
> > of <Thread(Thread-1, stopped daemon)>>
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.3/threading.py", line 451, in __bootstrap
> >     self.__stop()
> >   File "/usr/lib/python2.3/threading.py", line 460, in __stop
> >     self.__block.notifyAll()
> >   File "/usr/lib/python2.3/threading.py", line 256, in notifyAll
> >     self.notify(len(self.__waiters))
> >   File "/usr/lib/python2.3/threading.py", line 238, in notify
> >     currentThread() # for side-effect
> > TypeError: 'NoneType' object is not callable
> >
> > is this normal or should I look into my code for something that is
> > causing this?
> >
> > Thanks,
> >
> > Flávio
> >
> >
> > _______________________________________________
> > PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> > http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050302/7de9d380/attachment.bin


More information about the PyQt mailing list