diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-28 08:52:44 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-09-28 08:52:44 (GMT) |
commit | a6673806f936b86a3bca79807c05cb925008c52f (patch) | |
tree | d49303be6dd05ed6de9253332d28a9c0439d0d6b /Lib/idlelib | |
parent | 62520b2c63334b864b99ae7ed8b71a654d05ac32 (diff) | |
download | cpython-a6673806f936b86a3bca79807c05cb925008c52f.zip cpython-a6673806f936b86a3bca79807c05cb925008c52f.tar.gz cpython-a6673806f936b86a3bca79807c05cb925008c52f.tar.bz2 |
Issue #24972: New option is only valid in tk 8.5+.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 1f4bd9d..1243b95 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -770,8 +770,10 @@ class EditorWindow(object): insertbackground=cursor_color, selectforeground=select_colors['foreground'], selectbackground=select_colors['background'], - inactiveselectbackground=select_colors['background'], ) + if TkVersion >= 8.5: + self.text.config( + inactiveselectbackground=select_colors['background']) def ResetFont(self): "Update the text widgets' font if it is changed" |