May-09-2021, 08:36 AM
I am relatively new in Tkinter and trying to achieve a glow effect on hover on clickable objects.
I have got this far in my effort which I am ashamed to share but everybody has to take a start from somewhere so why not.
so cant think much about how to achieve my desired results
.
I have got this far in my effort which I am ashamed to share but everybody has to take a start from somewhere so why not.
from tkinter import * def changeOnHover(button, colorOnHover, colorOnLeave): button.bind("<Enter>", func=lambda e: button.config( background=colorOnHover)) button.bind("<Leave>", func=lambda e: button.config( background=colorOnLeave)) root = Tk() myButton = Button(root, text="On Hover - Background Change", bg="yellow") myButton.pack() changeOnHover(myButton, "red", "yellow") root.mainloop()P.S. I have tried multiple solutions from google and they were a bit confusing for me and right now i am experiencing creativity blockage

