[PyKDE] exiting an application cleanly

Flávio Codeço Coelho fccoelho at fiocruz.br
Tue Mar 1 17:42:15 GMT 2005


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
-------------- 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/20050301/09ddae4b/attachment.bin


More information about the PyQt mailing list