bpo-30781: Remove unused imports in idlelib.configdialog. (#4627) · python/cpython@e8f7c78 (original) (raw)

`@@ -11,8 +11,8 @@

`

11

11

`"""

`

12

12

`from tkinter import (Toplevel, Listbox, Text, Scale, Canvas,

`

13

13

`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,

`

16

16

`HORIZONTAL, VERTICAL, ANCHOR, ACTIVE, END)

`

17

17

`from tkinter.ttk import (Button, Checkbutton, Entry, Frame, Label, LabelFrame,

`

18

18

`OptionMenu, Notebook, Radiobutton, Scrollbar, Style)

`

`@@ -25,7 +25,6 @@

`

25

25

`from idlelib.dynoption import DynOptionMenu

`

26

26

`from idlelib import macosx

`

27

27

`from idlelib.query import SectionName, HelpSource

`

28

``

`-

from idlelib.tabbedpages import TabbedPageSet

`

29

28

`from idlelib.textview import view_text

`

30

29

`from idlelib.autocomplete import AutoComplete

`

31

30

`from idlelib.codecontext import CodeContext

`

`@@ -1443,7 +1442,7 @@ def create_page_keys(self):

`

1443

1442

`self.bindingslist['xscrollcommand'] = scroll_target_x.set

`

1444

1443

`self.button_new_keys = Button(

`

1445

1444

`frame_custom, text='Get New Keys for Selection',

`

1446

``

`-

command=self.get_new_keys, state=DISABLED)

`

``

1445

`+

command=self.get_new_keys, state='disabled')

`

1447

1446

`# frame_key_sets.

`

1448

1447

`frames = [Frame(frame_key_sets, padding=2, borderwidth=0)

`

1449

1448

`for i in range(2)]

`