mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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.
This commit is contained in:
parent
c4cda4369f
commit
76b645124b
12 changed files with 52 additions and 15 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue