summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-11-29 03:46:32 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2017-11-29 03:46:32 (GMT)
commita8de696dddd4ec46cdadb12cf2d45ebf1473659c (patch)
tree1816b7e5db3dd9e5d82e0a8a9042b5fd31943537 /Lib
parent38ecf57306ef25874ef7c44a9875771e90faee97 (diff)
downloadcpython-a8de696dddd4ec46cdadb12cf2d45ebf1473659c.zip
cpython-a8de696dddd4ec46cdadb12cf2d45ebf1473659c.tar.gz
cpython-a8de696dddd4ec46cdadb12cf2d45ebf1473659c.tar.bz2
bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (#4630)
(cherry picked from commit e8f7c78a868834bb53fa0ac903fc87785112f49e)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/configdialog.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index 099f526..4e8394b 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -11,8 +11,8 @@ Refer to comments in EditorWindow autoindent code for details.
"""
from tkinter import (Toplevel, Listbox, Text, Scale, Canvas,
StringVar, BooleanVar, IntVar, TRUE, FALSE,
- TOP, BOTTOM, RIGHT, LEFT, SOLID, GROOVE, NORMAL, DISABLED,
- NONE, BOTH, X, Y, W, E, EW, NS, NSEW, NW, CENTER,
+ TOP, BOTTOM, RIGHT, LEFT, SOLID, GROOVE,
+ NONE, BOTH, X, Y, W, E, EW, NS, NSEW, NW,
HORIZONTAL, VERTICAL, ANCHOR, ACTIVE, END)
from tkinter.ttk import (Button, Checkbutton, Entry, Frame, Label, LabelFrame,
OptionMenu, Notebook, Radiobutton, Scrollbar, Style)
@@ -25,7 +25,6 @@ from idlelib.config_key import GetKeysDialog
from idlelib.dynoption import DynOptionMenu
from idlelib import macosx
from idlelib.query import SectionName, HelpSource
-from idlelib.tabbedpages import TabbedPageSet
from idlelib.textview import view_text
from idlelib.autocomplete import AutoComplete
from idlelib.codecontext import CodeContext
@@ -1443,7 +1442,7 @@ class KeysPage(Frame):
self.bindingslist['xscrollcommand'] = scroll_target_x.set
self.button_new_keys = Button(
frame_custom, text='Get New Keys for Selection',
- command=self.get_new_keys, state=DISABLED)
+ command=self.get_new_keys, state='disabled')
# frame_key_sets.
frames = [Frame(frame_key_sets, padding=2, borderwidth=0)
for i in range(2)]