[Python-checkins] cpython (2.7): 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/45955adc2ed2
changeset:   98350:45955adc2ed2
branch:      2.7
parent:      98342:4b3356f1a261
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Mon Sep 28 04:52:44 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
@@ -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"

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


More information about the Python-checkins mailing list