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
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
change color of butto in thkinter
button = Button(tkWindow, bg='blue')
button = Button(tkWindow, bg='black')
button = Button(tkWindow, bg='white')
button = Button(tkWindow, bg='red')
#hex values
button = Button(tkWindow, bg='#54FA9B')
button = Button(tkWindow, bg='#A877BA')
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us