diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-07-14 16:20:12 +0000 |
commit | a929c9a3b465db8b7e17b9b39936c612c2621a7c (patch) | |
tree | d1764257d1bd56f8e6a044516ccfc9bc44f7f9f5 /python/examples/example-signal-emitter.py | |
parent | 5efe8e7f1d97931710558495a951e0b35afbfb72 (diff) |
* Remove all bindings
Diffstat (limited to 'python/examples/example-signal-emitter.py')
-rw-r--r-- | python/examples/example-signal-emitter.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/python/examples/example-signal-emitter.py b/python/examples/example-signal-emitter.py deleted file mode 100644 index 02eff893..00000000 --- a/python/examples/example-signal-emitter.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -import dbus -import dbus.service -import dbus.glib -import gobject - -class TestObject(dbus.service.Object): - def __init__(self, bus_name, object_path='/org/designfu/TestService/object'): - dbus.service.Object.__init__(self, bus_name, object_path) - - @dbus.service.signal('org.designfu.TestService') - def HelloSignal(self, message): - # The signal is emitted when this method exits - # You can have code here if you wish - pass - - @dbus.service.method('org.designfu.TestService') - def emitHelloSignal(self): - #you emit signals by calling the signal's skeleton method - self.HelloSignal('Hello') - return 'Signal emitted' - -session_bus = dbus.SessionBus() -name = dbus.service.BusName('org.designfu.TestService', bus=session_bus) -object = TestObject(name) - -loop = gobject.MainLoop() -loop.run() |