diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2022-03-19 15:14:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 15:14:21 (GMT) |
commit | 383a3bec74f0bf0c1b1bef9e0048db389c618452 (patch) | |
tree | bf79b1f70b90a74e4463e5fd592358ea48597951 /Lib/idlelib/pyshell.py | |
parent | 92a6abf72e7a8274f96edbb5297119d4ff055be7 (diff) | |
download | cpython-383a3bec74f0bf0c1b1bef9e0048db389c618452.zip cpython-383a3bec74f0bf0c1b1bef9e0048db389c618452.tar.gz cpython-383a3bec74f0bf0c1b1bef9e0048db389c618452.tar.bz2 |
bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962)
Diffstat (limited to 'Lib/idlelib/pyshell.py')
-rwxr-xr-x | Lib/idlelib/pyshell.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/idlelib/pyshell.py b/Lib/idlelib/pyshell.py index 6c333b0..2e54a81 100755 --- a/Lib/idlelib/pyshell.py +++ b/Lib/idlelib/pyshell.py @@ -22,15 +22,6 @@ if sys.platform == 'win32': pass from tkinter import messagebox -if TkVersion < 8.5: - root = Tk() # otherwise create root in main - root.withdraw() - from idlelib.run import fix_scaling - fix_scaling(root) - messagebox.showerror("Idle Cannot Start", - "Idle requires tcl/tk 8.5+, not %s." % TkVersion, - parent=root) - raise SystemExit(1) from code import InteractiveInterpreter import itertools @@ -1690,11 +1681,6 @@ def main(): # the IDLE shell window; this is less intrusive than always # opening a separate window. - # Warn if using a problematic OS X Tk version. - tkversionwarning = macosx.tkVersionWarning(root) - if tkversionwarning: - shell.show_warning(tkversionwarning) - # Warn if the "Prefer tabs when opening documents" system # preference is set to "Always". prefer_tabs_preference_warning = macosx.preferTabsPreferenceWarning() |