Trying the first basilar example:
import tkinter as tk
import tkinter.ttk as ttk
from tktooltip import ToolTip
app = tk.Tk()
b = ttk.Button(app, text="Button")
b.pack()
ToolTip(b, msg="Hover info")
app.mainloop()
with Python 3.12.2, tkinter-tooltip 3.0.0 on Windows 10 Enterprise, tooltips are not displayed in most cases. Sometimes, they appear in random attempts.
Edit: I found that your coding is working well linux. Also With your experiments, We may have to conclude that the problem occurs in windows
Tooltip module's official document says
Certain options do not match great with each other, a good example is follow and delay using small x/y offsets. This can cause the tooltip to appear inside the widget. Hovering over the tooltip will cause it to disappear and reappear, in a new position, potentially again inside the widget.The proof of Screenshot is given here.So, I just thought of bringing the same result in tkinter without using the tooltip module. And it is successful. Kindly try in your windows PC.