From: Terry Jan Reedy Date: Mon, 28 Sep 2015 08:52:44 +0000 (-0400) Subject: Issue #24972: New option is only valid in tk 8.5+. X-Git-Tag: v2.7.11rc1~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6673806f936b86a3bca79807c05cb925008c52f;p=thirdparty%2FPython%2Fcpython.git Issue #24972: New option is only valid in tk 8.5+. --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 1f4bd9dd62b3..1243b95417a3 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"