[Python-checkins] bpo-30781: Remove unused imports in idlelib.configdialog. (#4627)

Terry Jan Reedy webhook-mailer at python.org
Tue Nov 28 21:52:34 EST 2017


https://github.com/python/cpython/commit/e8f7c78a868834bb53fa0ac903fc87785112f49e
commit: e8f7c78a868834bb53fa0ac903fc87785112f49e
branch: master
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: GitHub <noreply at github.com>
date: 2017年11月28日T21:52:32-05:00
summary:
bpo-30781: Remove unused imports in idlelib.configdialog. (#4627)
files:
M Lib/idlelib/configdialog.py
diff --git a/Lib/idlelib/configdialog.py b/Lib/idlelib/configdialog.py
index 099f5262b1e..4e8394be928 100644
--- a/Lib/idlelib/configdialog.py
+++ b/Lib/idlelib/configdialog.py
@@ -11,8 +11,8 @@
 """
 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.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 @@ def create_page_keys(self):
 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)]


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /