mirror of
https://github.com/python/cpython.git
synced 2025-08-14 13:59:20 +00:00
Backport of r68153
This commit is contained in:
parent
1414e17b39
commit
ad18a49532
2 changed files with 7 additions and 2 deletions
|
@ -89,7 +89,9 @@ def overrideRootMenu(root, flist):
|
|||
|
||||
###check if Tk version >= 8.4.14; if so, use hard-coded showprefs binding
|
||||
tkversion = root.tk.eval('info patchlevel')
|
||||
if tkversion >= '8.4.14':
|
||||
# Note: we cannot check if the string tkversion >= '8.4.14', because
|
||||
# the string '8.4.7' is greater than the string '8.4.14'.
|
||||
if map(int, tkversion.split('.')) >= (8, 4, 14):
|
||||
Bindings.menudefs[0] = ('application', [
|
||||
('About IDLE', '<<about-idle>>'),
|
||||
None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue