Skip to content

Commit 3866d9b

Browse files
csabellaterryjreedy
authored andcommitted
bpo-30781: IDLE: Fix help button on configdialog (#3238)
This fixes an omission in the ttk conversion patch for this issue, hence no new news. Patch by Cheryl Sabella.
1 parent 58fc71c commit 3866d9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/idlelib/configdialog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ def help(self):
187187
"""Create textview for config dialog help.
188188
189189
Attrbutes accessed:
190-
tab_pages
190+
note
191191
192192
Methods:
193193
view_text: Method from textview module.
194194
"""
195-
page = self.tab_pages._current_page
195+
page = self.note.tab(self.note.select(), option='text').strip()
196196
view_text(self, title='Help for IDLE preferences',
197197
text=help_common+help_pages.get(page, ''))
198198

@@ -2104,7 +2104,7 @@ def detach(self):
21042104
[Cancel] only cancels changes made since the last save.
21052105
'''
21062106
help_pages = {
2107-
'Highlighting': '''
2107+
'Highlights': '''
21082108
Highlighting:
21092109
The IDLE Dark color theme is new in October 2015. It can only
21102110
be used with older IDLE releases if it is saved as a custom

0 commit comments

Comments
 (0)