[pygtk] Threading, Linux to Windows.

Seltzer squabbit7 at gmail.com
Wed Mar 5 07:13:19 WST 2008


Hi,

I'm having difficulty porting an application from linux to windows, mostly
due to threads.
I keep getting:
AssertionError: Thread.__init__() not called
>From a class that uses the threading class.
On linux it was written as:
class MyClass(threading.Thread):
    def __init__(self,otherstuff):
        threading.Thread.__init__(self)
        self.otherstuff =3D otherstuff
        ....

but this is not working. I have tried both with gtk.gdk.threads_init() and
without it,
calling just threading.Thread.__init__() without the self, etc.

Without fail i get the error as soon as python jumps to
MyClass.__init__(self,otherstuff)
it does not seem to matter what the first line of the function is, or if i
have or don't have the
Thread.__init__() statement.

any ideas? also any general help on what needs to be done differently under
windows that linux
to get pygtk threads to work would be great.

-felix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080304/61c410c5/at=
tachment.htm


More information about the pygtk mailing list