Answers for "tkinter button foreground color click"

2

how to change button background color while clicked tkinter python

#Type "activebackground=" + your chosen background color between commas
col = Button(yourWindow, text='col', bg='gray25', activebackground='cyan')
Posted by: Guest on September-03-2020
0

tkinter button foreground color click

# use activebackground and activeforeground properties to change the 
# button color at the instance of being pressed.
btn = Button(frame, text="Click me", activebackground="blue",
             activeforeground="white")
# activebackground will change the background of the button when clicked
# activeforeground will change the text color of the button when clicked
Posted by: Guest on October-12-2021

Code answers related to "tkinter button foreground color click"

Python Answers by Framework

Browse Popular Code Answers by Language