Skip to content

Closing IDLE

Closing IDLE

Eventually, you need to close IDLE when your session is finished. The com- mands for closing IDLE appear on the File menu, and there are actually two of them (which seems a bit confusing):

 

  • Close: Closes just the window that currently has This means that if you’re in a Python Shell window after running an application, just the Python Shell window closes and not the associated Edit window.
  • Exit: Closes the current window and all associated This means that if you’re in a Python Shell window after running an application, both the Python Shell window and the associated Edit window close.

 

When you close a window, IDLE checks to ensure that you have saved any content to disk. If you haven’t saved the content, you see a dialog box asking whether you want to save it.

 

The File➪Close and File➪Exit commands affect only the current session. For example, if you open two separate Python files, you need to close each file separately because each file is opened in a separate session.