changeset: 98350:45955adc2ed2 branch: 2.7 parent: 98342:4b3356f1a261 user: Terry Jan Reedy date: Mon Sep 28 04:52:44 2015 -0400 files: Lib/idlelib/EditorWindow.py description: Issue #24972: New option is only valid in tk 8.5+. diff -r 4b3356f1a261 -r 45955adc2ed2 Lib/idlelib/EditorWindow.py --- a/Lib/idlelib/EditorWindow.py Sun Sep 27 22:46:12 2015 -0400 +++ b/Lib/idlelib/EditorWindow.py Mon Sep 28 04:52:44 2015 -0400 @@ -770,8 +770,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']) def ResetFont(self): "Update the text widgets' font if it is changed"