summaryrefslogtreecommitdiff
path: root/Lib/idlelib/editor.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2018-06-19 23:00:35 -0400
committerGitHub <noreply@github.com>2018-06-19 23:00:35 -0400
commit06e2029dfa500a42e3565ed7ba8573412f153d1c (patch)
treef9fe4e4683e94c09ef7d807295c3f8c26b00b437 /Lib/idlelib/editor.py
parent4d92158f4c3917fc4fbfebff15224e74782abf79 (diff)
downloadcpython-git-06e2029dfa500a42e3565ed7ba8573412f153d1c.tar.gz
bpo-33907: Rename an IDLE module and class. (GH-7807)
Improve consistency and appearance. Module idlelib.calltips is now calltip. Class idlelib.calltip_w.CallTip is now Calltip.
Diffstat (limited to 'Lib/idlelib/editor.py')
-rw-r--r--Lib/idlelib/editor.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/idlelib/editor.py b/Lib/idlelib/editor.py
index 0095bd03bb..f5a091860e 100644
--- a/Lib/idlelib/editor.py
+++ b/Lib/idlelib/editor.py
@@ -54,7 +54,7 @@ class EditorWindow(object):
from idlelib.statusbar import MultiStatusBar
from idlelib.autocomplete import AutoComplete
from idlelib.autoexpand import AutoExpand
- from idlelib.calltips import CallTips
+ from idlelib.calltip import Calltip
from idlelib.codecontext import CodeContext
from idlelib.paragraph import FormatParagraph
from idlelib.parenmatch import ParenMatch
@@ -311,11 +311,11 @@ class EditorWindow(object):
text.bind("<<check-module>>", scriptbinding.check_module_event)
text.bind("<<run-module>>", scriptbinding.run_module_event)
text.bind("<<do-rstrip>>", self.RstripExtension(self).do_rstrip)
- calltips = self.CallTips(self)
- text.bind("<<try-open-calltip>>", calltips.try_open_calltip_event)
- #refresh-calltips must come after paren-closed to work right
- text.bind("<<refresh-calltip>>", calltips.refresh_calltip_event)
- text.bind("<<force-open-calltip>>", calltips.force_open_calltip_event)
+ ctip = self.Calltip(self)
+ text.bind("<<try-open-calltip>>", ctip.try_open_calltip_event)
+ #refresh-calltip must come after paren-closed to work right
+ text.bind("<<refresh-calltip>>", ctip.refresh_calltip_event)
+ text.bind("<<force-open-calltip>>", ctip.force_open_calltip_event)
text.bind("<<zoom-height>>", self.ZoomHeight(self).zoom_height_event)
text.bind("<<toggle-code-context>>",
self.CodeContext(self).toggle_code_context_event)