sim.random_list(param_lst[0]) sim.add_random_pf(param_lst[1]+2) elif button.id == 2: print_message(message_input_hand,help_msg_rect,home) sim.requirements = button.executeAction() elif button.id == 3: print_message(message_input_file,help_msg_rect,home) file_name = active_screen.get_element('InputBox').ask(False) sim.requirements = load_file(file_name) if (sim.requirements == None): print_message(["No se pudo abrir el archivo. Revise permisos y/o ubicacion"],error_msg_rect,active_screen,(255,0,0)) break elif button.id == 4: print_message(message_input_pos,help_msg_rect,active_screen) num = active_screen.get_element('InputBox').ask(False) sim.init_pos = int(num) if sim.init_pos<0 or sim.init_pos>511: print_message(["parametros incorrectos"], error_msg_rect,active_screen,(255,0,0)) break elif button.id == 5: active_screen=algorithm active_screen.update_sfc() elif active_screen == algorithm: for button in algorithm_men.elements: if button.clicked(pos): if button.id == -1: results = button.executeAction() print "aqui esta wally" if results: reqs, data = serialize_data(results) f = Menu(main, (algorithm_men.get_width()-20, main.get_height()-80, main.get_width()-algorithm_men.get_width()+20, main.get_height()-algorithm.get_element("Graphic").get_height()+20), black, footer_buttons, True)