We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a1500e + 05aeb2c commit ee8df97Copy full SHA for ee8df97
tktooltip/tooltip.py
@@ -134,7 +134,7 @@ def on_enter(self, event: tk.Event) -> None:
134
"""
135
Processes motion within the widget including entering and moving.
136
137
- self.last_moved = time.time()
+ self.last_moved = time.perf_counter()
138
self.status = ToolTipStatus.INSIDE
139
self._update_tooltip_coords(event)
140
self.after(int(self.delay * self.S_TO_MS), self._show)
@@ -177,7 +177,7 @@ def _show(self) -> None:
177
178
if (
179
self.status == ToolTipStatus.INSIDE
180
- and time.time() - self.last_moved >= self.delay
+ and time.perf_counter() - self.last_moved >= self.delay
181
):
182
self.status = ToolTipStatus.VISIBLE
183
0 commit comments