diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2005-07-13 18:22:35 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2005-07-13 18:22:35 +0000 |
commit | 2c413bf281cefde85209e5a3847735407bedaaa4 (patch) | |
tree | 1ef436afb3d96b2089b3e5a0fcffd035b12eca1b /python/examples | |
parent | 9f92ac0ef5ae8ab5a325b15d0b3109143fe51f8c (diff) |
* python/.cvsignore: remove dbus_bindings.pyx, add dbus_bindings.pxd
* python/service.py (class Name): renamed BusName to make it clearer
what the object is for (a name on the bus)
* python/examples/example-service.py,
python/examples/example-signal-emitter.py: change the Name object to
BusName
Diffstat (limited to 'python/examples')
-rw-r--r-- | python/examples/example-service.py | 4 | ||||
-rw-r--r-- | python/examples/example-signal-emitter.py | 2 |
2 files changed, 2 insertions, 4 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() diff --git a/python/examples/example-signal-emitter.py b/python/examples/example-signal-emitter.py index 64c7f177..64474e8f 100644 --- a/python/examples/example-signal-emitter.py +++ b/python/examples/example-signal-emitter.py @@ -21,7 +21,7 @@ class TestObject(dbus.service.Object): return "Signal emitted" session_bus = dbus.SessionBus() -name = dbus.service.Name("org.designfu.TestService", bus=session_bus) +name = dbus.service.BusName("org.designfu.TestService", bus=session_bus) object = TestObject(name) gtk.main() |