If you do that you might get a display error if your drawing code is after the input code.
On Thu, Oct 30, 2008 at 6:14 PM, claudio canepa <[EMAIL PROTECTED]> wrote: > > > On Thu, Oct 30, 2008 at 7:32 PM, Matt Pearson <[EMAIL PROTECTED]>wrote: > >> where do i put bContinue, before my main loop, or do i intergrate it with >> the loop >> >> On Thu, Oct 30, 2008 at 4:05 PM, claudio canepa <[EMAIL PROTECTED]>wrote: >> >>> >>> >>> On Thu, Oct 30, 2008 at 6:51 PM, Matt Pearson <[EMAIL PROTECTED]>wrote: >>> >>>> srry it does not clear the exception, i meant to say that it only clears >>>> the >>>> exception when i put the loop in a function, still closing problem >>>> remains >>>> >>>> On Thu, Oct 30, 2008 at 3:49 PM, Matt Pearson <[EMAIL PROTECTED]>wrote: >>>> >>>>> i have done that and while it clears IDLE of the exception it still >>>>> has a problem closing the window correctly >>>>> >>>>> On Thu, Oct 30, 2008 at 2:21 PM, pymike <[EMAIL PROTECTED]> wrote: >>>>> >>>>>> Call pygame.quit() right before the exit() function >>>>>> >>>>>> hth >>>>>> >>>>>> On Thu, Oct 30, 2008 at 1:49 PM, Matt Pearson <[EMAIL PROTECTED]>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 fine >>>>>>> until i try to close the window, and it freezes and goes to an >>>>>>> unresponsive program, then IDLE tells me this >>>>>>> >>>>>>> Traceback (most recent call last): >>>>>>> File "C:\Python26\RectTest.py", line 15, in <module> >>>>>>> exit() >>>>>>> SystemExit >>>>>>> On Thu, Oct 30, 2008 at 1:36 PM, Ian Mallett <[EMAIL PROTECTED]>wrote: >>>>>>> >>>>>>>> You'll have to be more specific. >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> - pymike >>>>>> "Stop loling into a false sense of hilarity" >>>>>> >>>>> >>>>> >>>> You can try this: >>> bContinue = True >>> while bContinue: >>> ... >>> if xxx: >>> bContinue=False >>> pygame.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 as >>> import time >>> time.wait(1) >>> that for give pygame some time to do cleanup. >>> -- untested -- >>> hth >>> -- >>> claxo >>> >>> >> >> probably you had solved it, but if not: replace your > while True: > with > bContinue = True > while bContinue: > and replace your > exit() > with > bContinue = False > pygame.quit() > -- > claxo > -- - pymike "Stop loling into a false sense of hilarity"