Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #tkinter #change #button #foreground
ADD COMMENT
Topic
Name
8+7 =