summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/scrolledtext.py
diff options
context:
space:
mode:
authorFlavian Hautbois <flavianh@sicara.com>2019-07-26 01:30:33 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-07-26 01:30:33 (GMT)
commit76b645124b3aaa34bc664eece43707c01ef1b382 (patch)
tree10aaa3e7e89080bd68128c4de544050599d261bf /Lib/tkinter/scrolledtext.py
parentc4cda4369f4b8f33082890d16dfc364a90658ef6 (diff)
downloadcpython-76b645124b3aaa34bc664eece43707c01ef1b382.zip
cpython-76b645124b3aaa34bc664eece43707c01ef1b382.tar.gz
cpython-76b645124b3aaa34bc664eece43707c01ef1b382.tar.bz2
bpo-29446: tkinter 'import *' only imports what it should (GH-14864)
Add __all__ to tkinter.__init__ and submodules. Replace 'import *' with explicit imports in some submodules.
Diffstat (limited to 'Lib/tkinter/scrolledtext.py')
-rw-r--r--Lib/tkinter/scrolledtext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tkinter/scrolledtext.py b/Lib/tkinter/scrolledtext.py
index 749a06a6..4f9a881 100644
--- a/Lib/tkinter/scrolledtext.py
+++ b/Lib/tkinter/scrolledtext.py
@@ -11,11 +11,11 @@ Most methods calls are inherited from the Text widget; Pack, Grid and
Place methods are redirected to the Frame widget however.
"""
-__all__ = ['ScrolledText']
-
from tkinter import Frame, Text, Scrollbar, Pack, Grid, Place
from tkinter.constants import RIGHT, LEFT, Y, BOTH
+__all__ = ['ScrolledText']
+
class ScrolledText(Text):
def __init__(self, master=None, **kw):