<filename>Estudo/cursoemvideo/tkinter/basic/aula16.py
from tkinter import *

menu_inicial = Tk()
menu_inicial.title("ndr")
menu_inicial.geometry("500x400")

texto = StringVar()
texto.set("Novo texto")

label01 = Label(menu_inicial,
    textvariable=texto,
    font="Arial 20",
    bg="red",
    fg="white"
)

texto.set("Outro texto")
label01.pack()


menu_inicial.mainloop()

<filename>Estudo/cursoemvideo/tkinter/basic/aula16.py
from tkinter import *

menu_inicial = Tk()
menu_inicial.title("ndr")
menu_inicial.geometry("500x400")

texto = StringVar()
texto.set("Novo texto")

label01 = Label(menu_inicial,
    textvariable=texto,
    font="Arial 20",
    bg="red",
    fg="white"
)

texto.set("Outro texto")
label01.pack()


menu_inicial.mainloop()
