[issue43013] IDLE: update code, mostly by cleanups of 2.x or 2to3 artifacts
Terry J. Reedy
report at bugs.python.org
Mon Jan 25 06:39:06 EST 2021
Terry J. Reedy <tjreedy at udel.edu> added the comment:
PR for 3. For 2.x, tkinter comprised several modules that became tkinter submodules. For 3.0, 'import tkOld' was replaced by 'import tkinter.new as tkOld', where 'new' is lowercase version of 'Old'. Fix remaining instances of tkColorChooser, tkFileDialog, tkSimpleDialog, and tkMessageBox by replacing 'tkOld' with 'new' and import with 'from tkinter import new'. Replace 'tkFont' with 'tkfont' instead of 'font' since 'font' is already used and leave import in 'as' form. There are no remaining instances of SimpleDialog or tkCommonDialog.
----------
stage: patch review ->
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43013>
_______________________________________
More information about the Python-bugs-list
mailing list