Skip to content

Commit

Permalink
pythongh-113729: Fix the Help -> "IDLE Help" menu in IDLE
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldoussoren committed Jan 5, 2024
1 parent c2e8298 commit f5dadc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Lib/idlelib/help.py
Expand Up @@ -279,7 +279,7 @@ def copy_strip():
print(f'{src} copied to {dst}')


def _helpwindow(parent):
def show_idlehelp(parent):
"Create HelpWindow; called from Idle Help event handler."
filename = join(abspath(dirname(__file__)), 'help.html')
if not isfile(filename):
Expand All @@ -293,4 +293,4 @@ def _helpwindow(parent):
main('idlelib.idle_test.test_help', verbosity=2, exit=False)

from idlelib.idle_test.htest import run
run(_helpwindow)
run(show_idlehelp)
2 changes: 1 addition & 1 deletion Lib/idlelib/idle_test/htest.py
Expand Up @@ -190,7 +190,7 @@
"<Escape>, [Cancel], or [X] prints None to shell"
}

_helpwindow_spec = {
show_idlehelp_spec = {
'file': 'help',
'kwds': {},
'msg': "If the help text displays, this works.\n"
Expand Down
@@ -0,0 +1 @@
Fix the "Help -> IDLE Help" menu.

0 comments on commit f5dadc6

Please sign in to comment.