mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-103668: Run pyugrade on idlelib (#103671)
--------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
7255bbd4a1
commit
bd2dca035a
17 changed files with 50 additions and 50 deletions
|
@ -92,7 +92,7 @@ class OnHoverTooltipBase(TooltipBase):
|
|||
e.g. after hovering over the anchor widget with the mouse for enough
|
||||
time.
|
||||
"""
|
||||
super(OnHoverTooltipBase, self).__init__(anchor_widget)
|
||||
super().__init__(anchor_widget)
|
||||
self.hover_delay = hover_delay
|
||||
|
||||
self._after_id = None
|
||||
|
@ -107,7 +107,7 @@ class OnHoverTooltipBase(TooltipBase):
|
|||
self.anchor_widget.unbind("<Button>", self._id3) # pragma: no cover
|
||||
except TclError:
|
||||
pass
|
||||
super(OnHoverTooltipBase, self).__del__()
|
||||
super().__del__()
|
||||
|
||||
def _show_event(self, event=None):
|
||||
"""event handler to display the tooltip"""
|
||||
|
@ -139,7 +139,7 @@ class OnHoverTooltipBase(TooltipBase):
|
|||
self.unschedule()
|
||||
except TclError: # pragma: no cover
|
||||
pass
|
||||
super(OnHoverTooltipBase, self).hidetip()
|
||||
super().hidetip()
|
||||
|
||||
|
||||
class Hovertip(OnHoverTooltipBase):
|
||||
|
@ -154,7 +154,7 @@ class Hovertip(OnHoverTooltipBase):
|
|||
e.g. after hovering over the anchor widget with the mouse for enough
|
||||
time.
|
||||
"""
|
||||
super(Hovertip, self).__init__(anchor_widget, hover_delay=hover_delay)
|
||||
super().__init__(anchor_widget, hover_delay=hover_delay)
|
||||
self.text = text
|
||||
|
||||
def showcontents(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue