Message6648

Author camjackson
Recipients camjackson
Date 2011-09-16.01:53:53
SpamBayes Score 0.007320132
Marked as misclassified No
Message-id <1316138034.6.0.892039144364.issue1797@psf.upfronthosting.co.za>
In-reply-to
Content
Take this very simple code: 

    from javax.swing import JFrame

    window = JFrame('Test', 
                    defaultCloseOperation = JFrame.EXIT_ON_CLOSE,
                    size = (800, 600))
    window.visible = True

The created window opens for a few seconds, and then closes. The only way I have found to keep the window open is by adding `while True: pass` after showing it, so it might be something to do with `window` going out of scope and being cleaned up, forcing it to close.

I have also encountered what I believe to be a more complicated manifestation of the same bug, which is best-documented here: http://stackoverflow.com/questions/6991878/why-is-my-file-getting-closed-if-i-dont-do-anything-with-it-for-a-while
History
Date User Action Args
2011-09-16 01:53:54camjacksonsetrecipients: + camjackson
2011-09-16 01:53:54camjacksonsetmessageid: <1316138034.6.0.892039144364.issue1797@psf.upfronthosting.co.za>
2011-09-16 01:53:54camjacksonlinkissue1797 messages
2011-09-16 01:53:53camjacksoncreate