Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def callbackInsereCritico(nome):
- conn = psycopg2.connect(host='localhost',
- database='diet+',
- user='postgres',
- password='teste')
- cur = conn.cursor()
- curCritics = conn.cursor()
- cur.execute("INSERT INTO critico (nome) VALUES ('" + nome + "')")
- conn.commit()
- rotuloAv = Label(formulario, text = "Cadastro do Avaliador")
- rotuloNm = Label(formulario, text = "Nome:")
- texto9 = Entry(formulario)
- botaoAv = Button(formulario, text = "Cadastrar",command = callbackInsereCritico(texto9.get()))
- resultadoAv = Label(formulario, text = None)
Add Comment
Please, Sign In to add comment