Message6265

Author scoder
Recipients MrMeanie, alex.gronholm, otmarhumbel, scoder, zyasoft
Date 2010-12-01.10:24:16
SpamBayes Score 0.00017752443
Marked as misclassified No
Message-id <1291199056.76.0.283814734652.issue1675@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a work-around that can be put at the end of a program's main application code:

    # work around Jython bug that kills Swing thread on main exit
    import threading
    while True:
        alive = False
        for thread in threading.enumerate():
            if not thread.isDaemon():
                alive = True
                thread.join(2)
        if not alive:
            sys.exit(0)
History
Date User Action Args
2010-12-01 10:24:16scodersetmessageid: <1291199056.76.0.283814734652.issue1675@psf.upfronthosting.co.za>
2010-12-01 10:24:16scodersetrecipients: + scoder, otmarhumbel, zyasoft, MrMeanie, alex.gronholm
2010-12-01 10:24:16scoderlinkissue1675 messages
2010-12-01 10:24:16scodercreate