mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
Remove debug
This commit is contained in:
@@ -60,11 +60,9 @@ class CTkTooltip(CTkToplevel):
|
|||||||
|
|
||||||
def _leave(self, event=None):
|
def _leave(self, event=None):
|
||||||
self._unschedule()
|
self._unschedule()
|
||||||
print("leave")
|
|
||||||
if self._visible: self.hide()
|
if self._visible: self.hide()
|
||||||
|
|
||||||
def _schedule(self, event=None):
|
def _schedule(self, event=None):
|
||||||
print("schedule")
|
|
||||||
self._unschedule()
|
self._unschedule()
|
||||||
self._id = self.master.after(self.wait_time, self.show)
|
self._id = self.master.after(self.wait_time, self.show)
|
||||||
|
|
||||||
@@ -76,7 +74,6 @@ class CTkTooltip(CTkToplevel):
|
|||||||
self.master.after_cancel(id)
|
self.master.after_cancel(id)
|
||||||
|
|
||||||
def show(self, event=None):
|
def show(self, event=None):
|
||||||
print("show")
|
|
||||||
# Get the position the tooltip needs to appear at
|
# Get the position the tooltip needs to appear at
|
||||||
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 (??)
|
||||||
@@ -105,7 +102,6 @@ class CTkTooltip(CTkToplevel):
|
|||||||
super().deiconify()
|
super().deiconify()
|
||||||
|
|
||||||
def hide(self):
|
def hide(self):
|
||||||
print("hide")
|
|
||||||
self._unschedule()
|
self._unschedule()
|
||||||
self.withdraw()
|
self.withdraw()
|
||||||
self._visible = False
|
self._visible = False
|
||||||
|
|||||||
Reference in New Issue
Block a user