summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/macosxSupport.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-20 23:57:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-20 23:57:13 (GMT)
commit5d46ab1274232d51060ba2e45e6c345ef4e5b970 (patch)
tree7398216e5fd4a31147d682c84b2b052f39b831d2 /Lib/idlelib/macosxSupport.py
parent16ad5cfad391a8e7c124ccaa984a56ad123d0ab2 (diff)
downloadcpython-5d46ab1274232d51060ba2e45e6c345ef4e5b970.zip
cpython-5d46ab1274232d51060ba2e45e6c345ef4e5b970.tar.gz
cpython-5d46ab1274232d51060ba2e45e6c345ef4e5b970.tar.bz2
Issue #16893: Replace help.txt with idle.html for Idle doc display.
The new idlelib/idle.html is copied from Doc/build/html/idle.html. It looks better than help.txt and will better document Idle as released. The tkinter html viewer that works for this file was written by Rose Roseman. The new code is in idlelib/help.py, a new file for help menu classes. The now unused EditorWindow.HelpDialog class and helt.txt file are deprecated.
Diffstat (limited to 'Lib/idlelib/macosxSupport.py')
-rw-r--r--Lib/idlelib/macosxSupport.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/macosxSupport.py b/Lib/idlelib/macosxSupport.py
index 77330cf..1030afe 100644
--- a/Lib/idlelib/macosxSupport.py
+++ b/Lib/idlelib/macosxSupport.py
@@ -174,9 +174,8 @@ def overrideRootMenu(root, flist):
configDialog.ConfigDialog(root, 'Settings')
def help_dialog(event=None):
- from idlelib import textView
- fn = path.join(path.abspath(path.dirname(__file__)), 'help.txt')
- textView.view_file(root, 'Help', fn)
+ from idlelib import help
+ help.show_idlehelp(root)
root.bind('<<about-idle>>', about_dialog)
root.bind('<<open-config-dialog>>', config_dialog)