mirror of
https://github.com/python/cpython.git
synced 2025-08-16 06:40:56 +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
|
@ -24,7 +24,7 @@ import tkinter.font as tkfont
|
|||
from tkinter import messagebox
|
||||
|
||||
from idlelib.config import idleConf, ConfigChanges
|
||||
from idlelib.config_key import GetKeysDialog
|
||||
from idlelib.config_key import GetKeysWindow
|
||||
from idlelib.dynoption import DynOptionMenu
|
||||
from idlelib import macosx
|
||||
from idlelib.query import SectionName, HelpSource
|
||||
|
@ -1397,7 +1397,7 @@ class KeysPage(Frame):
|
|||
for event in key_set_changes:
|
||||
current_bindings[event] = key_set_changes[event].split()
|
||||
current_key_sequences = list(current_bindings.values())
|
||||
new_keys = GetKeysDialog(self, 'Get New Keys', bind_name,
|
||||
new_keys = GetKeysWindow(self, 'Get New Keys', bind_name,
|
||||
current_key_sequences).result
|
||||
if new_keys:
|
||||
if self.keyset_source.get(): # Current key set is a built-in.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue