[Twisted-Python] using gtk without threads and pb
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
So I'm happily using pb and am generally content with the performace, but noticed the documentation mentioning that a C version of the jelly functions might be forthcoming kind of like the cPickle library. What is the status of "c" pb? I also saw talk of a "new" pb implementation (pb2?) and am wondering if the C version is being put on hold until the new pb protocol stabilizes. The new pb talk has got me curious as well. What's "new" or different about it? I'd be willing to help/collaborate/code with the C pb project if there in fact is one. Well, once I have more time... a little crazy at the moment. :) Thanks, --gabe
I haven't heard a response on this. Can anyone answer? Thanks Kim Kim Novak wrote:
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
------------------------------------------------------------------------
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Tue, 21 Mar 2006 11:21:21 -0600, Kim Novak <kim@trdlnk.com> wrote:
I haven't heard a response on this. Can anyone answer? Thanks Kim
Kim Novak wrote:
I am new to twisted and am trying to figure out if I can use it with gtk but without threads.
This is not currently supported. Jean-Paul
Thanks for the reply. Kim Jean-Paul Calderone wrote:
On Tue, 21 Mar 2006 11:21:21 -0600, Kim Novak <kim@trdlnk.com> wrote:
I haven't heard a response on this. Can anyone answer? Thanks Kim
Kim Novak wrote:
I am new to twisted and am trying to figure out if I can use it with gtk but without threads.
This is not currently supported.
Jean-Paul
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
participants (3)
-
Gabe Rudy
-
Jean-Paul Calderone
-
Kim Novak