Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/004-async-intervals/example.py
blob: eea5de040f3c3665378c5fb14a9e597f5fa0b616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/python

import gobject


def print_something():
    print 'Hello world!'
    return True


def main():
    gobject.timeout_add(1000, print_something)
    gobject.MainLoop().run()

if __name__ == "__main__":
    main()