Message88137
this simple code:
"
import gtk
from threading import Timer
from time import sleep
def p():
print "p"
Timer(1, p).start()
#gtk.main()
sleep(10)
print "done"
does print "p" a second after it starts.
when I remove the comment of the gtk.main() line: the "p" is never printed.
It is very exposed, as Timer is a common tool to build a GUI therefore
with the gtk.main() loop active. |
|
Date |
User |
Action |
Args |
2009-05-20 20:42:30 | eric | set | recipients:
+ eric |
2009-05-20 20:42:30 | eric | set | messageid: <1242852150.25.0.792657695233.issue6073@psf.upfronthosting.co.za> |
2009-05-20 20:42:29 | eric | link | issue6073 messages |
2009-05-20 20:42:28 | eric | create | |
|