diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-01-25 11:51:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 11:51:49 (GMT) |
commit | 7370be30017f81d2f41f1b4b2abf31dd9a3f8fb1 (patch) | |
tree | 7261d03e8a5799b86c7b9b8508ac3670880cd2b5 /Lib/idlelib/filelist.py | |
parent | 96bcf6f4d4bed1cdf97883eb43e872ff1a92013d (diff) | |
download | cpython-7370be30017f81d2f41f1b4b2abf31dd9a3f8fb1.zip cpython-7370be30017f81d2f41f1b4b2abf31dd9a3f8fb1.tar.gz cpython-7370be30017f81d2f41f1b4b2abf31dd9a3f8fb1.tar.bz2 |
bpo-43013: Fix old tkinter module names in idlelib (GH-24326)
Lowercase 'tkColorChooser', 'tkFileDialog', 'tkSimpleDialog', and
'tkMessageBox' and remove 'tk'. Just lowercase 'tkFont' as 'font'
is already used. Adjust import.
(cherry picked from commit 879986d8a932c4524cb6ff822afc9537de16e28d)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/filelist.py')
-rw-r--r-- | Lib/idlelib/filelist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/filelist.py b/Lib/idlelib/filelist.py index 0d20085..254f5ca 100644 --- a/Lib/idlelib/filelist.py +++ b/Lib/idlelib/filelist.py @@ -1,7 +1,7 @@ "idlelib.filelist" import os -from tkinter import messagebox as tkMessageBox +from tkinter import messagebox class FileList: @@ -20,7 +20,7 @@ class FileList: filename = self.canonize(filename) if os.path.isdir(filename): # This can happen when bad filename is passed on command line: - tkMessageBox.showerror( + messagebox.showerror( "File Error", "%r is a directory." % (filename,), master=self.root) @@ -88,7 +88,7 @@ class FileList: if newkey in self.dict: conflict = self.dict[newkey] self.inversedict[conflict] = None - tkMessageBox.showerror( + messagebox.showerror( "Name Conflict", "You now have multiple edit windows open for %r" % (filename,), master=self.root) |