mirror of
https://github.com/python/cpython.git
synced 2025-09-11 03:07:01 +00:00
Issue #24759: IDLE requires tk 8.5 and availability ttk widgets.
Delete now unneeded tk version tests and code for older versions.
This commit is contained in:
parent
82ae15597f
commit
1080d13a7d
8 changed files with 38 additions and 40 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue