Posts by Carlos Felipe • 11 points
2 posts
-
0
votes1
answer139
viewsA: Python-Mainloop Does not work
Try to do it this way from tkinter import * class Janela: def __init__(self, master=None): pass raiz = Tk() Janela(raiz) raiz.mainloop()
pythonanswered Carlos Felipe 11 -
1
votes2
answers1583
viewsA: Python - Assign the value of an entry to a variable
from tkinter import * root = Tk() mensagem = str entry = Entry(root) entry.pack() def enviar(): mensagem = str(entry.get()) print(mensagem) button = Button(root, text='ENVIAR', command=enviar)…