Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- #Configurações da Tela
- window = Tk()
- window.title("Hello World")
- window.resizable(width=False, height=False)
- window.geometry("300x300")
- TextoLabel = StringVar()
- TextoLabel.set("AAAAAA")
- #Criando uma funcao para dar update na Label
- #Widgets
- entrada = Entry(window)
- lbl = Label(textvariable = TextoLabel)
- b = Button(text="see ya?!")
- #Mostrar todos os itens na tela
- b.pack()
- entrada.pack()
- lbl.pack()
- window.mainloop()
- while True:
- if entryname.get() == "":
- lbl.config(text = "Nada")
- window.update_idletasks()
- else:
- lbl.config(text = entryname.get())
- window.update_idletasks()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement