On Thu, Oct 30, 2008 at 6:51 PM, Matt Pearson <jestersbong@xxxxxxxxx> wrote:
srry it does not clear the exception, i meant to say that it only clears theexception when i put the loop in a function, still closing problem remainsOn Thu, Oct 30, 2008 at 3:49 PM, Matt Pearson <jestersbong@xxxxxxxxx> wrote:
i have done that and while it clears IDLE of the exception it stillhas a problem closing the window correctlyOn Thu, Oct 30, 2008 at 2:21 PM, pymike <pymike93@xxxxxxxxx> wrote:
Call pygame.quit() right before the exit() function
hth--
On Thu, Oct 30, 2008 at 1:49 PM, Matt Pearson <jestersbong@xxxxxxxxx> wrote:
srry, just seeing if i have the right address,so im using python 2.6 and pygame 1.8
When i write out a script and save it, I run it, and all is fineuntil i try to close the window, and it freezes and goes to anunresponsive program, then IDLE tells me thisTraceback (most recent call last):
File "C:\Python26\RectTest.py", line 15, in <module>
exit()
SystemExitOn Thu, Oct 30, 2008 at 1:36 PM, Ian Mallett <geometrian@xxxxxxxxx> wrote:
You'll have to be more specific.
- pymike
"Stop loling into a false sense of hilarity"You can try this:bContinue = Truewhile bContinue:...if xxx:bContinue=Falsepygame.quit()...# dont use sys.exit, let execution find the end of file.<EOF>If even that has problems, then out of the loop and before the EOF do something asimport timetime.wait(1)that for give pygame some time to do cleanup.-- untested --hth--claxo