summaryrefslogtreecommitdiffstats
path: root/python/examples/example-service.py
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-07-14 16:20:12 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-07-14 16:20:12 +0000
commita929c9a3b465db8b7e17b9b39936c612c2621a7c (patch)
treed1764257d1bd56f8e6a044516ccfc9bc44f7f9f5 /python/examples/example-service.py
parent5efe8e7f1d97931710558495a951e0b35afbfb72 (diff)
* Remove all bindings
Diffstat (limited to 'python/examples/example-service.py')
-rw-r--r--python/examples/example-service.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/python/examples/example-service.py b/python/examples/example-service.py
deleted file mode 100644
index cb25d203..00000000
--- a/python/examples/example-service.py
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env python
-
-import dbus
-import dbus.service
-import dbus.glib
-import gobject
-
-class SomeObject(dbus.service.Object):
- def __init__(self, bus_name, object_path="/SomeObject"):
- dbus.service.Object.__init__(self, bus_name, object_path)
-
- @dbus.service.method("org.designfu.SampleInterface")
- def HelloWorld(self, hello_message):
- print (str(hello_message))
- return ["Hello", " from example-service.py"]
-
- @dbus.service.method("org.designfu.SampleInterface")
- def GetTuple(self):
- return ("Hello Tuple", " from example-service.py")
-
- @dbus.service.method("org.designfu.SampleInterface")
- def GetDict(self):
- return {"first": "Hello Dict", "second": " from example-service.py"}
-
-session_bus = dbus.SessionBus()
-name = dbus.service.BusName("org.designfu.SampleService", bus=session_bus)
-object = SomeObject(name)
-
-mainloop = gobject.MainLoop()
-mainloop.run()