[PyKDE] QThread problem
Steven Scott
bodoni26 at resnet.gatech.edu
Thu Dec 19 12:46:00 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm running the latest Python, Qt, and PyQt. I have this class:
class BotThread( QThread ):
def __init__( self, bot, callback ):
self.bot = bot
self.callback = callback
def run( self ):
try: self.bot.go()
except TOCError: self.callback()
and in a different class I have this code:
self.bt = BotThread( self.bot, self.badSignOn )
self.bt.start()
When I run the script, I'm getting this output every time:
progoth at billy pysp $ ./sp.py
Traceback (most recent call last):
File "./sp.py", line 391, in connectButton_clicked
bt.start()
AttributeError: sipThis
it doesn't actually get into the run() function...I really don't know what's
going on. Does anybody have any insight into this problem?
thanks
- --
Steven Scott [Bodoni26 at resnet.gatech.edu]
Don't give up fighting, 'til nothing else stands in your way..Don't
give up talking, until there's nothing left to say....But no matter
what you do, don't ever compromise what you believe. --The Ataris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+AbFKGyPp68eEVjYRAnG8AJ4svQbhl/WFtPFq4T+5BXdz9fMfIQCgiWEp
HIwkP25sKXmEgRtmTrjhZXg=
=IquE
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list