Example #1
0
 def __continue_process(self, text_nodes, shape_nodes, image_path, window):
     if window != None:
         window.destroy()
         window.update()
     graph = Graph(text_nodes, shape_nodes)
     flow = graph.generate_graph()
     #call function to traslate to code and flowchart
     results_path = self.__get_results_path()
     os.mkdir(self.RESULTS_PATH + results_path)
     cg = CodeGenerator(graph, results_path)
     cg.generate_code(graph.find_first_state(), -1)
     fg = FlowchartGenerator(graph, flow, results_path)
     fg.generate_flowchart()
     self.show_results(results_path)