From: Terry Jan Reedy Date: Sat, 16 Jul 2016 22:27:11 +0000 (-0400) Subject: Issue #25507: Merge from 3.5 with ttk replacing colorchooser. X-Git-Tag: v3.6.0a4~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41bc0678739e222eb491a00f95d89a178bac23d2;p=python 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. --- 41bc0678739e222eb491a00f95d89a178bac23d2 diff --cc Lib/idlelib/run.py index 10ede99e33,28ce4200a9..c7ee0b3e45 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@@ -19,6 -19,12 +19,12 @@@ from idlelib import iomen import __main__ + for mod in ('simpledialog', 'messagebox', 'font', + 'dialog', 'filedialog', 'commondialog', - 'colorchooser'): ++ 'ttk'): + delattr(tkinter, mod) + del sys.modules['tkinter.' + mod] + LOCALHOST = '127.0.0.1' import warnings