Issue #24759: IDLE requires tk 8.5 and availability ttk widgets.

Delete now unneeded tk version tests and code for older versions.
This commit is contained in:
Terry Jan Reedy 2016-06-09 21:09:15 -04:00
parent 82ae15597f
commit 1080d13a7d
8 changed files with 38 additions and 40 deletions

View file

@ -199,12 +199,6 @@ def overrideRootMenu(root, flist):
('About IDLE', '<<about-idle>>'),
None,
]))
tkversion = root.tk.eval('info patchlevel')
if tuple(map(int, tkversion.split('.'))) < (8, 4, 14):
# for earlier AquaTk versions, supply a Preferences menu item
mainmenu.menudefs[0][1].append(
('_Preferences....', '<<open-config-dialog>>'),
)
if isCocoaTk():
# replace default About dialog with About IDLE one
root.createcommand('tkAboutDialog', about_dialog)