changeset: 98351:460e6e6fb09a branch: 3.4 parent: 98347:2445750029df user: Terry Jan Reedy date: Mon Sep 28 04:52:49 2015 -0400 files: Lib/idlelib/EditorWindow.py description: Issue #24972: New option is only valid in tk 8.5+. diff -r 2445750029df -r 460e6e6fb09a Lib/idlelib/EditorWindow.py --- a/Lib/idlelib/EditorWindow.py Mon Sep 28 04:16:32 2015 -0400 +++ b/Lib/idlelib/EditorWindow.py Mon Sep 28 04:52:49 2015 -0400 @@ -755,8 +755,10 @@ 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']) IDENTCHARS = string.ascii_letters + string.digits + "_"