Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
bpo-29446: Improve tkinter 'import *' situation#14864
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -21,6 +21,8 @@ | ||
| from tkinter.commondialog import Dialog | ||
| __all__ = ["Chooser", "askcolor"] | ||
| # | ||
| # color chooser class | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -8,15 +8,17 @@ | ||
| # written by Fredrik Lundh, May 1997 | ||
| # | ||
| from tkinter import * | ||
flavianh marked this conversation as resolved. Outdated Show resolvedHide resolvedUh oh!There was an error while loading. Please reload this page. | ||
| __all__ = ["Dialog"] | ||
| from tkinter import Frame | ||
flavianh marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading. Please reload this page. | ||
| class Dialog: | ||
| command = None | ||
| command = None | ||
| def __init__(self, master=None, **options): | ||
| self.master = master | ||
| self.master = master | ||
| self.options = options | ||
| if not master and options.get('parent'): | ||
| self.master = options['parent'] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -99,9 +99,10 @@ | ||
| """ | ||
| import tkinter | ||
| __all__ = ["dnd_start", "DndHandler"] | ||
| # The factory function | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -3,11 +3,12 @@ | ||
| # written by Fredrik Lundh, February 1998 | ||
| # | ||
| __version__ = "0.9" | ||
| import itertools | ||
| import tkinter | ||
| __version__ = "0.9" | ||
| ||
| __all__ = ["NORMAL", "ROMAN", "BOLD", "ITALIC", | ||
| "nametofont", "Font", "families", "names"] | ||
| # weight/slant | ||
| NORMAL = "normal" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Make `from tkinter import *` import only the expected objects. | ||
flavianh marked this conversation as resolved. Outdated Show resolvedHide resolvedUh oh!There was an error while loading. Please reload this page. | ||
Uh oh!
There was an error while loading. Please reload this page.