Answers for "text color tkinter"

4

tkinter change label text color

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

text color tkinter

from Tkinter import *

def onclick():
   pass

root = Tk()
text = Text(root)
text.insert(INSERT, "Hello.....")
text.insert(END, "Bye Bye.....")
text.pack()

text.tag_add("here", "1.0", "1.4")
text.tag_add("start", "1.8", "1.13")
text.tag_config("here", background="yellow", foreground="blue")
text.tag_config("start", background="black", foreground="green")
root.mainloop()
Posted by: Guest on March-04-2021
0

text color python tkinter

from tkinter import *
root=Tk()
l1=Label(root,text="hello world",fg="red").pack()
Posted by: Guest on May-01-2020

Code answers related to "text color tkinter"

Browse Popular Code Answers by Language