bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (… · python/cpython@a8de696
@@ -11,8 +11,8 @@
1111"""
1212from tkinter import (Toplevel, Listbox, Text, Scale, Canvas,
1313StringVar, BooleanVar, IntVar, TRUE, FALSE,
14-TOP, BOTTOM, RIGHT, LEFT, SOLID, GROOVE, NORMAL, DISABLED,
15-NONE, BOTH, X, Y, W, E, EW, NS, NSEW, NW, CENTER,
14+TOP, BOTTOM, RIGHT, LEFT, SOLID, GROOVE,
15+NONE, BOTH, X, Y, W, E, EW, NS, NSEW, NW,
1616HORIZONTAL, VERTICAL, ANCHOR, ACTIVE, END)
1717from tkinter.ttk import (Button, Checkbutton, Entry, Frame, Label, LabelFrame,
1818OptionMenu, Notebook, Radiobutton, Scrollbar, Style)
@@ -25,7 +25,6 @@
2525from idlelib.dynoption import DynOptionMenu
2626from idlelib import macosx
2727from idlelib.query import SectionName, HelpSource
28-from idlelib.tabbedpages import TabbedPageSet
2928from idlelib.textview import view_text
3029from idlelib.autocomplete import AutoComplete
3130from idlelib.codecontext import CodeContext
@@ -1443,7 +1442,7 @@ def create_page_keys(self):
14431442self.bindingslist['xscrollcommand'] = scroll_target_x.set
14441443self.button_new_keys = Button(
14451444frame_custom, text='Get New Keys for Selection',
1446-command=self.get_new_keys, state=DISABLED)
1445+command=self.get_new_keys, state='disabled')
14471446# frame_key_sets.
14481447frames = [Frame(frame_key_sets, padding=2, borderwidth=0)
14491448for i in range(2)]