diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2005-05-24 00:21:07 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2005-05-24 00:21:07 +0000 |
commit | e43a353d27f1b9643c21ccff53a7759fc3dcdffe (patch) | |
tree | ad51cf8b4ec9801fe11e012b7453ddb52c51ab44 /python/examples/example-signal-emitter.py | |
parent | 8af9f11e54317698424bc15ca566e46268646d73 (diff) |
* python/decorators.py: import dbus_bindings
* python/matchrules.py (SignalMatchRule, SignalMatchTree,
SignalMatchNode): new classes that implement wildcard signal
callback matching using a tree lookup. Heavily modified from a
patch sent by Celso Pinto (fd.o bug #3241)
* _dbus.py (add_signal_receiver, remove_signal_receiver, _signal_func):
use new match classes to handle signals.
Diffstat (limited to 'python/examples/example-signal-emitter.py')
-rw-r--r-- | python/examples/example-signal-emitter.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/examples/example-signal-emitter.py b/python/examples/example-signal-emitter.py index 662c2bc7..428f1440 100644 --- a/python/examples/example-signal-emitter.py +++ b/python/examples/example-signal-emitter.py @@ -10,15 +10,15 @@ class TestObject(dbus.Object): @dbus.signal('org.designfu.TestService') def HelloSignal(self, message): # The signal is emitted when this method exits - # You can have code here if you wish + # You can have code here if you wish pass @dbus.method('org.designfu.TestService') def emitHelloSignal(self): #you emit signals by calling the signal's skeleton method - self.HelloSignal("Hello") - return "Signal emitted" - + self.HelloSignal("Hello") + return "Signal emitted" + session_bus = dbus.SessionBus() service = dbus.Service("org.designfu.TestService", bus=session_bus) object = TestObject(service) |