It is completely written in python and the tkinter gui toolkit (wrapper functions for tcl / tk).. Idle (integrated development and learning environment) is an integrated development environment (ide) for python.
The python installer for windows contains the idle module by default.. Idle uses a socket to communicate between the idle gui process and the user code execution process.