Re: How to change colors of multiple widgets after hovering in Tkinter

2013-01-10 Thread Rick Johnson
On Thursday, January 10, 2013 1:13:38 PM UTC-6, Peter Otten wrote: > mountdoom wrote: > > I´m trying to make a script, which will change the background and > > foreground color of widgets after hovering. Peter's advice is spot on except you may want ALL widgets to change colors on and events. I

Re: How to change colors of multiple widgets after hovering in Tkinter

2013-01-10 Thread Peter Otten
mountdoo...@gmail.com wrote: > I´m trying to make a script, which will change the background and > foreground color of widgets after hovering. > but when I hover on any button, nothing happens, they stay white. I know I > could use a function, but there would be two functions for every widget (1

How to change colors of multiple widgets after hovering in Tkinter

2013-01-10 Thread mountdoom12
Hello, I´m trying to make a script, which will change the background and foreground color of widgets after hovering. - from Tkinter import * root=Tk() Hover1=Button(root,text="Red color", bg="white") Hover1.pack() Hover2=Button(root,text="Yellow color", bg="white") Ho