[Gelistirici] [Uludag-commits] r16340 - in trunk/python-modules/d_light: . d_light examples include

Bahadır Kandemir bahadir at pardus.org.tr
16 Ara 2007 Paz 14:30:45 EET


16 Ara 2007 Paz tarihinde, uludag-commits at pardus.org.tr şunları yazmıştı: 
> Author: bahadir.kandemir
> Date: Sun Dec 16 14:18:36 2007
> New Revision: 16340
>
> Added:
>    trunk/python-modules/d_light/
>    trunk/python-modules/examples/qt3-gui.py
>    ...
> Log:
> Lightweight Python binding for DBus

Python GIL'e takılmadan thread içinde kullanabileceğimiz bir DBus event 
loop.

...

class dbusEvent(QThread):
    def run(self):
        while 1:
            d_light.fetch()
            time.sleep(0.5) # crucial
            d_light.exec_()

...

d_light.init()
event = dbusEvent()
event.start()
d_light.registerSignal("type='signal'", self.handleSignal)
d_light.call("tr.org.pardus.comar", "/system", "tr.org.pardus.comar", "listApplications", 
(), callbackFunction)

...
-------------- sonraki bölüm --------------
A non-text attachment was scrubbed...
Name: kullanılamıyor
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://liste.pardus.org.tr/gelistirici/attachments/20071216/ed7c9731/attachment-0002.pgp>


Gelistirici mesaj listesiyle ilgili daha fazla bilgi