Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to set background color for a button in tkinter

from tkinter import *
root = Tk()
button = Button(root, bg='red')  # Background color = red
button.pack()
root.mainloop
Source by pythonexamples.org #
 
PREVIOUS NEXT
Tagged: #set #background #color #button #tkinter
ADD COMMENT
Topic
Name
7+5 =