Issue #25507: Merge from 3.5 with ttk replacing colorchooser.

IDLE no longer runs buggy code because of its tkinter imports.
Users must include the same imports required to run directly in Python.
This commit is contained in:
Terry Jan Reedy 2016-07-16 18:27:11 -04:00
commit 41bc067873
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ from idlelib import iomenu
import __main__
for mod in ('simpledialog', 'messagebox', 'font',
'dialog', 'filedialog', 'commondialog',
'ttk'):
delattr(tkinter, mod)
del sys.modules['tkinter.' + mod]
LOCALHOST = '127.0.0.1'
import warnings