mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-46996: IDLE: Drop workarounds for old Tk versions (GH-31962)
This commit is contained in:
parent
92a6abf72e
commit
383a3bec74
3 changed files with 1 additions and 36 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue