summaryrefslogtreecommitdiffstats
path: root/python/examples/example-service.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/example-service.py')
-rw-r--r--python/examples/example-service.py4
1 files changed, 2 insertions, 2 deletions
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):