From a89b13dd19740bd308a983650f49148c0bf6d58c Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Fri, 15 Jul 2005 18:09:59 +0000 Subject: * python/examples/example-service.py, python/examples/example-signal-emitter.py: Fixed up examples for API changes --- python/examples/example-service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/examples/example-service.py') diff --git a/python/examples/example-service.py b/python/examples/example-service.py index 00f39935..ce871a1f 100644 --- a/python/examples/example-service.py +++ b/python/examples/example-service.py @@ -7,8 +7,8 @@ import pygtk import gtk class SomeObject(dbus.service.Object): - def __init__(self, name): - dbus.service.Object.__init__(self, "/SomeObject", name) + def __init__(self, bus_name, object_path="/SomeObject"): + dbus.service.Object.__init__(self, bus_name, object_path) @dbus.service.method("org.designfu.SampleInterface") def HelloWorld(self, hello_message): -- cgit