[Tkinter-discuss] Button Overrelief
Fredrik Lundh
fredrik at pythonware.com
Tue Jun 27 14:43:38 CEST 2006
Michael Foord wrote:
> I have some Tkinter buttons that display images. I would like to change
> these to 'active' images when the mouse is over the button.
>
> I see that the button widget can take an 'overrelief' argument in the
> constructor. What values can this take ?
same as RELIEF; see
http://effbot.org/tkinterbook/button.htm#Tkinter.Button.config-method
> Also - can anyone provide an example of using the equivalent of a
> 'mouseover' event to change the image used by a button in Tkinter ? I'm
> afraid google has not helped me much here.
you can use <Enter> and <Leave> events for this; see:
http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm#events
</F>
More information about the Tkinter-discuss
mailing list