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

Re: [pygame] IDLE crashes on error?



On 12 Aug 2006 at 14:37, Luke Paireepinart wrote:

> Nice conjectures, but I think the confusion is from David's response.
> I think he meant to say '[turning on this subprocess] option is 
> [removing] the -n flag'
> The -n command is on by default on windows boxen (at least mine was.)
> As per someone else's instructions (I can't remember who, sorry)
> Open Windows Explorer
> Tools Menu > Folder Options
> File Types tab
> select 'py' and hit advanced
> select 'Edit with Idle' and hit Edit
> under 'Application used to perform action:'
> get rid of the -n argument that it passes.
> 
> You should probably do this with .pyw files also.
> 
> I can't imagine why giving it more than one -n would make a difference,
> or how you added -n to the argument list, but anyway,
> this should do what you want.  I just tried it and it is very helpful.
> I used to create .bat files for all my programs
> that would run my programs and then pause,
> so if there were error messages I could see them,
> since pygame apps would give me IDLE problems,
> but I just wrote a pygame app and it worked fine once
> I removed the -n flag.

The -n flag is there for a reason. Windows had problems when IDLE 
starts a second process for an "edit" file association. Maybe the 
problem was solved in recent Windows versions. Better still is to 
start IDLE first, then open the file to edit.

Lenard Lindstrom
<len-l@xxxxxxxxx>