def automatoER(input): input = entrytext.get() l = Leitor(input) dict, ini, final = l.ler() a = Automato(dict,ini,final) er = a.automataToER() expressao = Er(er) expressao.printER() expressao.writeERToFile(input) input = input.replace('.in', '') data_file = open('../testes/'+input+'.out') data = data_file.read() data_file.close() test = Tk.Tk() Results = Tk.Label(test, text = data) Results.grid(row = 20, column = 3, sticky= Tk.W)