756 setselect = True |
756 setselect = True |
757 linea = 1 |
757 linea = 1 |
758 for aline in txt.splitlines(): |
758 for aline in txt.splitlines(): |
759 posa = aline.find("s_e_l_e_c_t_s_t_a_r_t") |
759 posa = aline.find("s_e_l_e_c_t_s_t_a_r_t") |
760 if posa >= 0: |
760 if posa >= 0: |
761 txt = txt.replace("s_e_l_e_c_t_s_t_a_r_t", "") |
761 txt = txt.replace("s_e_l_e_c_t_s_t_a_r_t", "") |
762 break |
762 break |
763 else: |
763 else: |
764 linea += 1 |
764 linea += 1 |
765 lineb = 1 |
765 lineb = 1 |
766 for aline in txt.splitlines(): |
766 for aline in txt.splitlines(): |
767 posb = aline.find("s_e_l_e_c_t_e_n_d") |
767 posb = aline.find("s_e_l_e_c_t_e_n_d") |
768 if posb >= 0: |
768 if posb >= 0: |
769 txt = txt.replace("s_e_l_e_c_t_e_n_d", "") |
769 txt = txt.replace("s_e_l_e_c_t_e_n_d", "") |
770 break |
770 break |
771 else: |
771 else: |
772 lineb += 1 |
772 lineb += 1 |
773 |
773 |
774 editor.insert(txt) |
774 editor.insert(txt) |