def text():
print('Hello, world!!')
from tkinter import *
janela = Tk()
janela.title('Test')
janela.geometry('800x800')
botao = Button(janela,text='Clique aqui',command=text)
botao.grid(column=0,row=0)
janela.mainloop()
That's the code. How can I print the "Hello, world!" as a Label on the Tk or something like this?
Well, I just want the text appears at the Tk.