mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
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:
parent
82ae15597f
commit
1080d13a7d
8 changed files with 38 additions and 40 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue