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/idle_test/test_configdialog.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/idle_test/test_configdialog.py')
-rw-r--r-- | Lib/idlelib/idle_test/test_configdialog.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/idle_test/test_configdialog.py b/Lib/idlelib/idle_test/test_configdialog.py index 1fea6d4..98ddc67 100644 --- a/Lib/idlelib/idle_test/test_configdialog.py +++ b/Lib/idlelib/idle_test/test_configdialog.py @@ -423,7 +423,7 @@ class HighPageTest(unittest.TestCase): def test_color(self): d = self.page d.on_new_color_set = Func() - # self.color is only set in get_color through ColorChooser. + # self.color is only set in get_color through colorchooser. d.color.set('green') self.assertEqual(d.on_new_color_set.called, 1) del d.on_new_color_set @@ -540,8 +540,8 @@ class HighPageTest(unittest.TestCase): def test_get_color(self): eq = self.assertEqual d = self.page - orig_chooser = configdialog.tkColorChooser.askcolor - chooser = configdialog.tkColorChooser.askcolor = Func() + orig_chooser = configdialog.colorchooser.askcolor + chooser = configdialog.colorchooser.askcolor = Func() gntn = d.get_new_theme_name = Func() d.highlight_target.set('Editor Breakpoint') @@ -582,7 +582,7 @@ class HighPageTest(unittest.TestCase): eq(d.color.get(), '#de0000') del d.get_new_theme_name - configdialog.tkColorChooser.askcolor = orig_chooser + configdialog.colorchooser.askcolor = orig_chooser def test_on_new_color_set(self): d = self.page |