changeset: 102373:af602a891892 parent: 102371:49e1e8413ecc parent: 102372:8df5200064c4 user: Terry Jan Reedy date: Sat Jul 16 18:27:11 2016 -0400 files: Lib/idlelib/run.py description: 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. diff -r 49e1e8413ecc -r af602a891892 Lib/idlelib/run.py --- a/Lib/idlelib/run.py Sat Jul 16 10:46:10 2016 -0700 +++ b/Lib/idlelib/run.py Sat Jul 16 18:27:11 2016 -0400 @@ -19,6 +19,12 @@ 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