<br><font face="courier new,monospace"><font size="4">Hola! si, tienes razón Arnau. <br><br>Por ejemplo, para seleccionar un texto completo (seleccionar todo) hago lo siguiente:<br><br><font style="font-family: georgia,serif;" size="2">#Obtengo los iteradores del buffer<br>
start, end = self.buffer.get_bounds()<br><br>#Se crean las marcas iniciales y se obtiene el texto del buffer           <br>self.buffer.create_mark(&quot;Start&quot;,start,True)     <br>self.buffer.create_mark(&quot;End&quot;,end,True)<br>
text=self.buffer.get_text(start,end,True)<br>self.buffer.delete_selection(False,False)<br><br>#Se &quot;sincronizan&quot; las marcas anteriores con las designadas para seleccionar texto<br>iter_start=self.buffer.get_iter_at_mark(self.buffer.get_mark(&quot;Start&quot;))<br>
iter_end=self.buffer.get_iter_at_mark(self.buffer.get_mark(&quot;End&quot;))<br><br>#Se selecciona el texto contenido en las marcas    <br>self.buffer.move_mark_by_name(&quot;insert&quot;,iter_start)         <br>self.buffer.move_mark_by_name(&quot;selection_bound&quot;,iter_end)</font><br>
<br>Ahora bien, no sé cómo obtener los iteradores de texto de una selección que se haga con el cursor. Supongamos que tengo el texto: &quot;Hola mundo&quot;, y con el cursor selecciono &quot;Hola&quot; para cambiar su tipografía, por ejemplo. No sé cómo obtener &quot;Hola&quot; para realizar las operaciones que quiera...<br>
<br>Gracias de antemano por sus sugerencias :)<br></font></font>