summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-28 08:52:44 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-28 08:52:44 (GMT)
commita6673806f936b86a3bca79807c05cb925008c52f (patch)
treed49303be6dd05ed6de9253332d28a9c0439d0d6b /Lib/idlelib
parent62520b2c63334b864b99ae7ed8b71a654d05ac32 (diff)
downloadcpython-a6673806f936b86a3bca79807c05cb925008c52f.zip
cpython-a6673806f936b86a3bca79807c05cb925008c52f.tar.gz
cpython-a6673806f936b86a3bca79807c05cb925008c52f.tar.bz2
Issue #24972: New option is only valid in tk 8.5+.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/EditorWindow.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 1f4bd9d..1243b95 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"