Fredrik Lundh wrote:
> 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
>
>   

Thanks for your help Fredrik, this is working great. I'll have to 
experiment with RELIEF and OVERRELIEF.

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

> </F> 
>
>
>
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss@python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
>
>   

_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to