Answers for "tkinter label background color"

4

tkinter change label text color

label_name.configure(foreground="blue")
Posted by: Guest on February-27-2020
0

Label for Tkinter Python with color and background

label = tk.Label(
    text="Hello, Tkinter",
    foreground="white",  # Set the text color to white
    background="black"  # Set the background color to black
)
Posted by: Guest on June-21-2021
0

Label for Tkinter Python with color and background

label = tk.Label(text="Hello, Tkinter", background="#34A2FE")
Posted by: Guest on June-21-2021
0

tkinter label

from Tkinter import *

root = Tk()
var = StringVar()
label = Label( root, textvariable=var, relief=RAISED )

var.set("Hey!? How are you doing?")
label.pack()
root.mainloop()
Posted by: Guest on August-31-2020

Python Answers by Framework

Browse Popular Code Answers by Language