tkinter change label text color
label_name.configure(foreground="blue")
tkinter change label text color
label_name.configure(foreground="blue")
Update label text after pressing a button in Tkinter
#tested and working on PYTHON 3.8 AND ADDED TO PATH
import tkinter as tk
win = tk.Tk()
def changetext():
a.config(text="changed text!")
a = tk.Label(win, text="hello world")
a.pack()
tk.Button(win, text="Change Label Text", command=changetext).pack()
win.mainloop()
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