IDLE crashing on quit/close: Solved


I just made a new linux box, and an odd thing is happening: whenever I either quit out of a panda window, or just close it, IDLE (which I’m using to write the code) also crashes. This is rather annoying for prototyping, as I have to reload all the windows.

Here is the test program I’m running:

import direct.directbase.DirectStart
from direct.showbase.DirectObject import DirectObject
import sys

class TestWrapper(DirectObject):
    def __init__(self):

        self.accept("escape", sys.exit, [0])
        self.accept("q", sys.exit, [0])

test = TestWrapper()


I then hit q, and it all goes down :slight_smile:

I am running Panda 1.6.2 using Python 2.6, IDLE, on a 10.04 LTS Ubuntu system.

Thanks a lot!

EDIT: Typical: as soon as I posted, I found a solution/workaround: the launcher was using a -n flag (no subprocesses) for whatever reason - removing this fixed the issue. If someone could explain why this causes an issue I’d be interested to hear it, but problem solved.