mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
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.
This commit is contained in:
parent
16ad5cfad3
commit
5d46ab1274
6 changed files with 927 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue