diff options
author | Seif Lotfy <seif@lotfy.com> | 2012-11-20 16:43:27 +0100 |
---|---|---|
committer | Seif Lotfy <seif@lotfy.com> | 2012-11-20 16:43:27 +0100 |
commit | 850d5189d3159f7cab6c509a2dd58c9f427c0bfc (patch) | |
tree | d7dea74c06169517cd143a386bbb9addcb4ff3e7 | |
parent | 9d8da594240982622429cf2975756e9c8af5be89 (diff) | |
download | zeitgeist-850d5189d3159f7cab6c509a2dd58c9f427c0bfc.tar.gz |
Add loop to the python example
-rw-r--r-- | examples/python/find_events.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/python/find_events.py b/examples/python/find_events.py index 2bf127c0..5d7c5308 100644 --- a/examples/python/find_events.py +++ b/examples/python/find_events.py @@ -1,7 +1,8 @@ -from gi.repository import Zeitgeist +from gi.repository import Zeitgeist, Gtk log = Zeitgeist.Log.get_default() def callback (x): print x -log.get_events([x for x in xrange(100)], None, callback, None) +log.get_events([x for x in xrange(100)], None, callback, None) +Gtk.main() |