Created
November 9, 2013 21:25
-
-
Save zed/7390230 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Demo for [gobject.timeout_add_seconds fails after system hibernation][1] | |
[1]: http://stackoverflow.com/q/19882390/ | |
""" | |
import time | |
import gtk, glib | |
def callback(): | |
print(time.asctime()) | |
return True # continue | |
glib.timeout_add_seconds(1, callback) | |
gtk.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment