davemds pushed a commit to branch master.
commit 43adf11542f54dc9cd9069c4329c7f7320e1833d
Author: davemds <[email protected]>
Date: Sun Apr 7 15:18:32 2013 +0200
Python-EFL: new dbus example, quite empty now, will improve.
---
examples/dbus/test_dbus_spy.py | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
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()
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html