diff options
author | Seth Nickell <seth@gnome.org> | 2004-05-29 22:37:13 +0000 |
---|---|---|
committer | Seth Nickell <seth@gnome.org> | 2004-05-29 22:37:13 +0000 |
commit | 5d6113aaa0595a8eb7f3263c5679b2bd069f95ba (patch) | |
tree | 121e289d4a0385252b9c9a007ab946371113960d /python/examples/example-service.py | |
parent | 7c77664c5a38d44b14044286e7e5aa7def858889 (diff) |
2004-05-29 Seth Nickell <seth@gnome.org>
* python/dbus.py:
* python/examples/example-client.py:
* python/examples/example-service.py:
* python/examples/list-system-services.py:
Add SessionBus, SystemBus and ActivationBus classes
so you don't need to know the special little BUS_TYPE
flag.
Diffstat (limited to 'python/examples/example-service.py')
-rw-r--r-- | python/examples/example-service.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/example-service.py b/python/examples/example-service.py index 79fb009d..d1460802 100644 --- a/python/examples/example-service.py +++ b/python/examples/example-service.py @@ -11,8 +11,8 @@ class SomeObject(dbus.Object): print (hello_message) return "Hello from example-service.py" - -service = dbus.Service("org.designfu.SampleService") +session_bus = dbus.SessionBus() +service = dbus.Service("org.designfu.SampleService", bus=session_bus) object = SomeObject(service) gtk.main() |