mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
Fix multiple tooltips sometimes appearing at once
This commit is contained in:
parent
4a35787e90
commit
456863aa23
@ -75,6 +75,7 @@ class CTkTooltip(CTkToplevel):
|
|||||||
|
|
||||||
def show(self, event=None):
|
def show(self, event=None):
|
||||||
# Get the position the tooltip needs to appear at
|
# Get the position the tooltip needs to appear at
|
||||||
|
if self._visible: return
|
||||||
super().__init__(self.master)
|
super().__init__(self.master)
|
||||||
super().withdraw() # hide and reshow window once all code is ran to fix issues due to slower machines (??)
|
super().withdraw() # hide and reshow window once all code is ran to fix issues due to slower machines (??)
|
||||||
self._visible = True
|
self._visible = True
|
||||||
|
Loading…
Reference in New Issue
Block a user