summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2015-09-20 23:57:37 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2015-09-20 23:57:37 (GMT)
commit47f9741e5cc08a5f4e2d24fb62388afa18b30a8c (patch)
tree6f4e28d96c3dc9db427e3bc3405e829e57643546 /Lib/idlelib/EditorWindow.py
parentfc2fb0f62197ada0dec658dbd3ae44fcd7fcb938 (diff)
parent5d46ab1274232d51060ba2e45e6c345ef4e5b970 (diff)
downloadcpython-47f9741e5cc08a5f4e2d24fb62388afa18b30a8c.zip
cpython-47f9741e5cc08a5f4e2d24fb62388afa18b30a8c.tar.gz
cpython-47f9741e5cc08a5f4e2d24fb62388afa18b30a8c.tar.bz2
Merge with 3.4
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 3ac68bb..09f2b28 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -21,6 +21,7 @@ from idlelib import PyParse
from idlelib.configHandler import idleConf
from idlelib import aboutDialog, textView, configDialog
from idlelib import macosxSupport
+from idlelib import help
# The default tab setting for a Text widget, in average-width characters.
TK_TABWIDTH_DEFAULT = 8
@@ -42,6 +43,11 @@ def _sphinx_version():
class HelpDialog(object):
def __init__(self):
+ import warnings as w
+ w.warn("EditorWindow.HelpDialog is no longer used by Idle.\n"
+ "It will be removed in 3.6 or later.\n"
+ "It has been replaced by private help.HelpWindow\n",
+ DeprecationWarning, stacklevel=2)
self.parent = None # parent of help window
self.dlg = None # the help window iteself
@@ -539,11 +545,13 @@ class EditorWindow(object):
configDialog.ConfigExtensionsDialog(self.top)
def help_dialog(self, event=None):
+ "Handle help doc event."
+ # edit maxosxSupport.overrideRootMenu.help_dialog to match
if self.root:
parent = self.root
else:
parent = self.top
- helpDialog.display(parent, near=self.top)
+ help.show_idlehelp(parent)
def python_docs(self, event=None):
if sys.platform[:3] == 'win':
@@ -1716,4 +1724,4 @@ def _editor_window(parent): # htest #
if __name__ == '__main__':
from idlelib.idle_test.htest import run
- run(_help_dialog, _editor_window)
+ run(_editor_window)