This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric
Recipients eric
Date 2009-05-20.20:42:28
SpamBayes Score 3.8648686e-05
Marked as misclassified No
Message-id <1242852150.25.0.792657695233.issue6073@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-05-20 20:42:30ericsetrecipients: + eric
2009-05-20 20:42:30ericsetmessageid: <1242852150.25.0.792657695233.issue6073@psf.upfronthosting.co.za>
2009-05-20 20:42:29ericlinkissue6073 messages
2009-05-20 20:42:28ericcreate