summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/calltip_w.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-04-23 23:25:08 (GMT)
committerGitHub <noreply@github.com>2023-04-23 23:25:08 (GMT)
commitbd2dca035af88694e25fb060f984fbbcda82bed8 (patch)
treefed7d54ec1154ebc7390967d78c61e911509fae2 /Lib/idlelib/calltip_w.py
parent7255bbd4a1841447a21c3eb74e4fd9e21818d833 (diff)
downloadcpython-bd2dca035af88694e25fb060f984fbbcda82bed8.zip
cpython-bd2dca035af88694e25fb060f984fbbcda82bed8.tar.gz
cpython-bd2dca035af88694e25fb060f984fbbcda82bed8.tar.bz2
gh-103668: Run pyugrade on idlelib (#103671)
--------- 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 1e0404a..2785460 100644
--- a/Lib/idlelib/calltip_w.py
+++ b/Lib/idlelib/calltip_w.py
@@ -25,7 +25,7 @@ class CalltipWindow(TooltipBase):
text_widget: a Text widget with code for which call-tips are desired
"""
# Note: The Text widget will be accessible as self.anchor_widget
- super(CalltipWindow, self).__init__(text_widget)
+ super().__init__(text_widget)
self.label = self.text = None
self.parenline = self.parencol = self.lastline = None
@@ -54,7 +54,7 @@ class CalltipWindow(TooltipBase):
return
self.lastline = curline
self.anchor_widget.see("insert")
- super(CalltipWindow, self).position_window()
+ super().position_window()
def showtip(self, text, parenleft, parenright):
"""Show the call-tip, bind events which will close it and reposition it.
@@ -73,7 +73,7 @@ class CalltipWindow(TooltipBase):
self.parenline, self.parencol = map(
int, self.anchor_widget.index(parenleft).split("."))
- super(CalltipWindow, self).showtip()
+ super().showtip()
self._bind_events()
@@ -143,7 +143,7 @@ class CalltipWindow(TooltipBase):
# ValueError may be raised by MultiCall
pass
- super(CalltipWindow, self).hidetip()
+ super().hidetip()
def _bind_events(self):
"""Bind event handlers."""