mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
bpo-35675: IDLE - separate config_key window and frame (GH-11427)
bpo-35598: IDLE: Refactor window and frame class
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
(cherry picked from commit 1cc308d03c
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
This commit is contained in:
parent
1dc1d5d59a
commit
b61a51a450
4 changed files with 174 additions and 82 deletions
|
@ -954,8 +954,8 @@ class KeysPageTest(unittest.TestCase):
|
|||
def test_get_new_keys(self):
|
||||
eq = self.assertEqual
|
||||
d = self.page
|
||||
orig_getkeysdialog = configdialog.GetKeysDialog
|
||||
gkd = configdialog.GetKeysDialog = Func(return_self=True)
|
||||
orig_getkeysdialog = configdialog.GetKeysWindow
|
||||
gkd = configdialog.GetKeysWindow = Func(return_self=True)
|
||||
gnkn = d.get_new_keys_name = Func()
|
||||
|
||||
d.button_new_keys.state(('!disabled',))
|
||||
|
@ -997,7 +997,7 @@ class KeysPageTest(unittest.TestCase):
|
|||
eq(d.keybinding.get(), '<Key-p>')
|
||||
|
||||
del d.get_new_keys_name
|
||||
configdialog.GetKeysDialog = orig_getkeysdialog
|
||||
configdialog.GetKeysWindow = orig_getkeysdialog
|
||||
|
||||
def test_get_new_keys_name(self):
|
||||
orig_sectionname = configdialog.SectionName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue