aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dbus
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2013-04-07 15:18:32 +0200
committerdavemds <dave@gurumeditation.it>2013-04-07 15:18:32 +0200
commit43adf11542f54dc9cd9069c4329c7f7320e1833d (patch)
treec5a4fae0f4fad8a44b62bb555dfd5c7927c15bbc /examples/dbus
parentapi_coverage: rearrange, fix "all" parameter, make excludes a list. (diff)
downloadpython-efl-43adf11542f54dc9cd9069c4329c7f7320e1833d.tar.gz
Python-EFL: new dbus example, quite empty now, will improve.
Diffstat (limited to 'examples/dbus')
-rwxr-xr-xexamples/dbus/test_dbus_spy.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/dbus/test_dbus_spy.py b/examples/dbus/test_dbus_spy.py
new file mode 100755
index 0000000..6020199
--- /dev/null
+++ b/examples/dbus/test_dbus_spy.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+
+import dbus
+import json
+from efl.dbus_mainloop import DBusEcoreMainLoop
+from efl import ecore
+
+
+
+def dprint(arg):
+ print(json.dumps(arg, indent=2))
+
+
+bus = dbus.SystemBus(mainloop=DBusEcoreMainLoop())
+
+dprint(bus.list_names())
+
+# ecore.main_loop_begin()