Hi, a simple solution is to bind to "enter" and "leaver" on Tk widgets, as in

bind $tag <Enter> {pd [yourobjectname] mouse_enter}

bind $tag <Leave> {pd [yourobjectname] mouse_leave}

Check out the new code of else/knob to see how I'm doing this

cheers

Em sex., 8 de nov. de 2024 às 22:20, Alexandre Torres Porres <porres@gmail.com> escreveu:
I see that Pd changes its cursor to a straight up arrow when hovering with yout mouse over an object that takes clicks.

Is there a simple way for a GUI object to know if it's being hovered by a mouse?

I;m working on a GUI and it can also also show number values in different modes, I wonder if I can make it show a number when the mouse is on top of it.

thanks