Given the difficulties that I've found trying to print from Python, I was just commenting this week-end on the efficiency of the printing process used in IDLE. What is the specific code that allows the IDLE window to be printed to notepad (in Windows XP)?