[Python-checkins] cpython (3.4): Issue #24972: New option is only valid in tk 8.5+.

terry.reedy python-checkins at python.org
Mon Sep 28 10:53:28 CEST 2015


https://hg.python.org/cpython/rev/460e6e6fb09a
changeset:   98351:460e6e6fb09a
branch:      3.4
parent:      98347:2445750029df
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Mon Sep 28 04:52:49 2015 -0400
summary:
  Issue #24972: New option is only valid in tk 8.5+.

files:
  Lib/idlelib/EditorWindow.py |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -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 + "_"
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list