Akascape / CTkToolTip

Small pop-up widget for displaying details inside customtkinter. (extension/add-on)
Creative Commons Zero v1.0 Universal
111 stars 7 forks source link

Update ctk_tooltip.py #4

Closed RobertCordingly closed 1 year ago

RobertCordingly commented 1 year ago

I was having a bug where the CustomTkinter app would crash in the event that widgets were destroyed. This change fixed it

Akascape commented 1 year ago

@RobertCordingly but why are you not passing the widget parameter.

RobertCordingly commented 1 year ago

See the magical thing is that I am, and I have no explanation as to why the widget is somehow magically None, but it is sometimes

And this one if statement fixes that scenario

Akascape commented 1 year ago

@RobertCordingly What message was shown when you destroyed the widget?

Akascape commented 1 year ago

This was fixed by adding a new binding.