This is happening because IDLE is using your system's Python install rather than the one included with Sage. There isn't a trivial way to make this work. If you really want to use IDLE, then you need to install Tkinter into the Sage version of Python. Otherwise, you can use another text editor and the load and attach commands on the Sage command line for a similar effect.