summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/calltip_w.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-06-20 06:40:30 (GMT)
committerGitHub <noreply@github.com>2018-06-20 06:40:30 (GMT)
commit17d4c53fa3516f78df3c4f343bc6d2007af157cf (patch)
tree7224fdc4200d2d563ac4ee1e1e3dbb6fa5d2f554 /Lib/idlelib/calltip_w.py
parente97a685185b82ba6de6de576fc2a4cf3cd6192af (diff)
downloadcpython-17d4c53fa3516f78df3c4f343bc6d2007af157cf.zip
cpython-17d4c53fa3516f78df3c4f343bc6d2007af157cf.tar.gz
cpython-17d4c53fa3516f78df3c4f343bc6d2007af157cf.tar.bz2
bpo-33907: Rename an IDLE module and classes. (GH-7810)
Fix-up class name duplication in PR GH-7807. Combined effect is that module calltips and its class CallTips are now calltip and Calltip. In module calltip_w class CallTip is now CalltipWindow. (cherry picked from commit 9af1836664d241fec6e62955ffaa559b3a2eaf1b) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/calltip_w.py')
-rw-r--r--Lib/idlelib/calltip_w.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/idlelib/calltip_w.py b/Lib/idlelib/calltip_w.py
index b75e4c2..34531f4 100644
--- a/Lib/idlelib/calltip_w.py
+++ b/Lib/idlelib/calltip_w.py
@@ -1,4 +1,4 @@
-"""A Calltip window class for Tkinter/IDLE.
+"""A calltip window class for Tkinter/IDLE.
After tooltip.py, which uses ideas gleaned from PySol
Used by calltip.
@@ -13,7 +13,7 @@ CHECKHIDE_TIME = 100 # milliseconds
MARK_RIGHT = "calltipwindowregion_right"
-class Calltip:
+class CalltipWindow:
def __init__(self, widget):
self.widget = widget
@@ -47,7 +47,7 @@ class Calltip:
def showtip(self, text, parenleft, parenright):
"""Show the calltip, bind events which will close it and reposition it.
"""
- # Only called in Calltip, where lines are truncated
+ # Only called in calltip.Calltip, where lines are truncated
self.text = text
if self.tipwindow or not self.text:
return
@@ -147,7 +147,7 @@ def _calltip_window(parent): # htest #
text.pack(side=LEFT, fill=BOTH, expand=1)
text.insert("insert", "string.split")
top.update()
- calltip = Calltip(text)
+ calltip = CalltipWindow(text)
def calltip_show(event):
calltip.showtip("(s=Hello world)", "insert", "end")