summaryrefslogtreecommitdiffstats
path: root/python/examples/example-signal-emitter.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/example-signal-emitter.py')
-rw-r--r--python/examples/example-signal-emitter.py8
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)