[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] PyKDE4, KApplication and DBus
From: Adeodato =?utf-8?B?U2ltw7M=?= <dato () net ! com ! org ! es>
Date: 2008-10-31 18:47:50
Message-ID: 20081031184750.GA20582 () chistera ! yi ! org
[Download RAW message or body]
* 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
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic