[Twisted-Python] using gtk without threads and pb

Kim Novak kim at trdlnk.com
Mon Mar 6 11:04:59 EST 2006


I am new to twisted and am trying to figure out if I can use it with gtk 
but without threads.

I need this because of an old library I'm using that doesn't work with 
gtk threads. Since I have to run single threaded the async xml rpc 
offered by Twisted is ideal for my application to work well.

To test this I tweaked the example pbgtk2.py to disable threads as 
recommended here:
http://twistedmatrix.com/trac/ticket/1083
The tweaked version is attached. I start pbecho.py and run my pbgtk2.py. 
When I click connect it eventually times out. Without my tweaks it 
connects immediately.

Does anyone know if this is supposed to be possible? If so, what I am I 
doing wrong?

I am using python v2.3 and pygtk v2.6.
Thanks
Kim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pbgtk2.py
Type: application/x-python
Size: 4284 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20060306/9e9acbc7/attachment.bin 


More information about the Twisted-Python mailing list