[PyQt] PyKDE4, KApplication and DBus

Adeodato Simó dato at net.com.org.es
Fri Oct 31 18:47:50 GMT 2008


* Wilbert Berendsen [Fri, 31 Oct 2008 19:29:24 +0100]:

> class App(dbus.service.Object):
>     def __init__(self):
>         bus_name = dbus.service.BusName("org.myapp-%s" % os.getpid() , bus=dbus.SessionBus())
>         dbus.service.Object.__init__(self, bus_name, "/MyApp")

>     @dbus.service.method("HelloInterface", in_signature='', out_signature='')
>     def sayHello(self):
>         print "Hello!"

That code fails on me with:

  ValueError: Invalid interface or error name 'HelloInterface': must contain '.'

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
When all is summed up, a man never speaks of himself without loss; his
accusations of himself are always believed; his praises never.
                -- Michel de Montaigne



More information about the PyQt mailing list