gnikit / tkinter-tooltip

A ToolTip widget for tkinter
https://gnikit.github.io/tkinter-tooltip
MIT License
41 stars 4 forks source link

Tooltip stays behind when the window is destroyed #59

Closed 8k84 closed 6 months ago

8k84 commented 1 year ago

I have a tooltip assigned to a widget in a window. If the window is destroyed when the tooltip is displayed, the tooltip stays on.

gnikit commented 11 months ago

Can you post a minimal working example that reproduces this behaviour?

8k84 commented 11 months ago

Not right now. A quick description for now: as I mentioned, I had a tooltip assigned to a widget in a window; I also had a key (Esc) bound to window.destroy() . If I hit Esc when tooltip was displayed, the tooltip stayed on. And the workaround I used was to redefine "destroy" by setting tooltip.status='outside' and calling tooltip.withdraw() on all tooltips first, and only then window.destroy().

gnikit commented 11 months ago

For us to be on the same page you will have to post a Minimal Reproducible Example otherwise I am just guessing. Take your time and update the Issue description with some code whenever you have the time, there is no rush.

I am working on a PR that auto?destroys the tooltip, it sounds like that is something you would find useful. I will ping you when I get something working.

gnikit commented 6 months ago

Closing this as stale.