It is completely written in python and the tkinter gui toolkit (wrapper functions for tcl / tk).. Idle uses a socket to communicate between the idle gui process and the user code execution process.
In this tutorial, you'll learn how to use the development environment included with your python installation.. Python idle is a small.