8000 gh-113729: Fix the Help -> "IDLE Help" menu in IDLE by ronaldoussoren · Pull Request #113731 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-113729: Fix the Help -> "IDLE Help" menu in IDLE #113731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-113729: Fix the Help -> "IDLE Help" menu in IDLE
  • Loading branch information
ronaldoussoren committed Jan 5, 2024
commit f5dadc6f7b6ec7acc0d8d8afc563bf17f674555c
4 changes: 2 additions & 2 deletions Lib/idlelib/help.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the "Help -> IDLE Help" menu.
0