Boa noite, Minha função callbackInsereCritico executa direto sem o click do botão,oque pode ser?
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)