diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2021-01-25 06:33:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 06:33:18 -0500 |
commit | 879986d8a932c4524cb6ff822afc9537de16e28d (patch) | |
tree | 897aea5f98000a01fad09fa83303d3d5086ae61b /Lib/idlelib/idle_test/test_configdialog.py | |
parent | cf19cc3b920ca5995e1c202d2c3dd7a59ac8eac8 (diff) | |
download | cpython-879986d8a932c4524cb6ff822afc9537de16e28d.tar.gz cpython-879986d8a932c4524cb6ff822afc9537de16e28d.zip |
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.
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 1fea6d41df8..98ddc67afdc 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 |