[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Starting from IDLE



On Wed, 15 Oct 2003, Bo Jangeborg wrote:

> Sami Hangaslammi wrote:
> >On Wed, 15 Oct 2003, Bo Jangeborg wrote:
> >>When I run a pygame program from IDLE (windows IDE) the game window
> >>doesn't close when the application stops. I have to press CTRL-ALT-DEL
> >>to close the window. Am I missing something ?
> >
> >Don't run from IDLE. That's the only solution I can offer. IDLE uses Tk 
> >and its event loop messes with pygame events.
> >
> >Do the editing in IDLE and run your program from the command line.
>
> How do you solve debuging ?

You can drop into the debugger directly, although then you need to mess with
pdb on the command line.  I forget the line needed though...  something like:
import pdb ; pdb.set_trace()?

Looking through the pdb docs on python.org should get it right.

-Jasper