-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfre.py
More file actions
27 lines (21 loc) · 686 Bytes
/
fre.py
File metadata and controls
27 lines (21 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import cowsay
import tkinter
def main():
tk = tkinter.Tk()
tk.title("Programa do Aure")
tk.geometry("400x400")
text = tkinter.Label(tk, text="Bom dia! Clique no botão para fechar")
text.grid(column=3, row=3, padx=20, pady=30)
click = tkinter.Label(tk, text="")
click.grid(column=3, row=5, padx=20, pady=30)
botao = tkinter.Button(tk, text="Fechar", command=lambda: pegar(click))
botao.grid(column=3, row=4, padx=20, pady=0)
tk.mainloop()
print("vamos")
def pegar(click:tkinter.Label()):
click.config(text="vai")
return "clicou"
bom_dia = "Bom dia, humano!"
cowsay.ghostbusters(bom_dia)
if __name__ == "__main__":
main()