Skip to content

Commit a8de696

Browse files
miss-islingtonterryjreedy
authored andcommitted
bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (#4630)
(cherry picked from commit e8f7c78)
1 parent 38ecf57 commit a8de696

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/idlelib/configdialog.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"""
1212
from tkinter import (Toplevel, Listbox, Text, Scale, Canvas,
1313
StringVar, 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,
1616
HORIZONTAL, VERTICAL, ANCHOR, ACTIVE, END)
1717
from tkinter.ttk import (Button, Checkbutton, Entry, Frame, Label, LabelFrame,
1818
OptionMenu, Notebook, Radiobutton, Scrollbar, Style)
@@ -25,7 +25,6 @@
2525
from idlelib.dynoption import DynOptionMenu
2626
from idlelib import macosx
2727
from idlelib.query import SectionName, HelpSource
28-
from idlelib.tabbedpages import TabbedPageSet
2928
from idlelib.textview import view_text
3029
from idlelib.autocomplete import AutoComplete
3130
from idlelib.codecontext import CodeContext
@@ -1443,7 +1442,7 @@ def create_page_keys(self):
14431442
self.bindingslist['xscrollcommand'] = scroll_target_x.set
14441443
self.button_new_keys = Button(
14451444
frame_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.
14481447
frames = [Frame(frame_key_sets, padding=2, borderwidth=0)
14491448
for i in range(2)]

0 commit comments

Comments
 (0)