Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by pythonexamples.org #
 
PREVIOUS NEXT
Tagged: #tkinter #button #foreground #color #click
ADD COMMENT
Topic
Name
6+7 =