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, 1 insertions, 3 deletions
diff --git a/python/examples/example-service.py b/python/examples/example-service.py
index 9e2f193b..00f39935 100644
--- a/python/examples/example-service.py
+++ b/python/examples/example-service.py
@@ -2,8 +2,6 @@
import dbus
import dbus.service
-
-
import dbus.glib
import pygtk
import gtk
@@ -26,7 +24,7 @@ class SomeObject(dbus.service.Object):
return {"first": "Hello Dict", "second": " from example-service.py"}
session_bus = dbus.SessionBus()
-name = dbus.service.Name("org.designfu.SampleService", bus=session_bus)
+name = dbus.service.BusName("org.designfu.SampleService", bus=session_bus)
object = SomeObject(name)
gtk.main()