summaryrefslogtreecommitdiff
path: root/Lib/idlelib/editor.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-06-09 21:09:15 -0400
committerTerry Jan Reedy <tjreedy@udel.edu>2016-06-09 21:09:15 -0400
commit1080d13a7da30df34de7862ea46525c2f19091c7 (patch)
tree3af70dcfb4ec7b735b79f03ac10e4c1783666894 /Lib/idlelib/editor.py
parent82ae15597f1af7a0121ebf49e749dda673d4e3d6 (diff)
downloadcpython-git-1080d13a7da30df34de7862ea46525c2f19091c7.tar.gz
Issue #24759: IDLE requires tk 8.5 and availability ttk widgets.
Delete now unneeded tk version tests and code for older versions.
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r--Lib/idlelib/editor.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py
index b214c6ab9b..d04fc08e47 100644
--- a/Lib/idlelib/editor.py
+++ b/Lib/idlelib/editor.py
@@ -110,13 +110,10 @@ class EditorWindow(object):
'wrap': 'none',
'highlightthickness': 0,
'width': self.width,
- 'height': idleConf.GetOption('main', 'EditorWindow',
- 'height', type='int')}
- if TkVersion >= 8.5:
- # Starting with tk 8.5 we have to set the new tabstyle option
- # to 'wordprocessor' to achieve the same display of tabs as in
- # older tk versions.
- text_options['tabstyle'] = 'wordprocessor'
+ 'tabstyle': 'wordprocessor', # new in 8.5
+ 'height': idleConf.GetOption(
+ 'main', 'EditorWindow', 'height', type='int'),
+ }
self.text = text = MultiCallCreator(Text)(text_frame, **text_options)
self.top.focused_widget = self.text