diff options
author | Seif Lotfy <seif@lotfy.com> | 2012-11-20 11:01:37 +0100 |
---|---|---|
committer | Seif Lotfy <seif@lotfy.com> | 2012-11-20 11:01:37 +0100 |
commit | 9d8da594240982622429cf2975756e9c8af5be89 (patch) | |
tree | 0cf7eba04cb94c314bf697bd5805b5490e883fc3 /examples | |
parent | 24eb980dcd1b19f1de0ca84a891fb03124d7d024 (diff) |
Added missing callback function to the python example
Diffstat (limited to 'examples')
-rw-r--r-- | examples/python/find_events.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/python/find_events.py b/examples/python/find_events.py index 330e43e8..2bf127c0 100644 --- a/examples/python/find_events.py +++ b/examples/python/find_events.py @@ -1,3 +1,7 @@ from gi.repository import Zeitgeist log = Zeitgeist.Log.get_default() -log.get_events([x for x in xrange(100)], None, callback, None) + +def callback (x): + print x + +log.get_events([x for x in xrange(100)], None, callback, None) |