Answers for "can't change button background tkinter"

3

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 change button foreground

#bg for changing background colour of the button
#fg for chaning foreground colour of the button 

button = tk.Button(root, text="Sign Out", bg='green', fg="white", command= lambda: controller.show_frame(10)) #, highlightthickness = 0, bd = 0)
button.grid(row=3, column=0, sticky='ne', padx=20, pady=50)
Posted by: Guest on August-07-2021

Code answers related to "can't change button background tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language