Hi again,
Thanks Mr Reis for your answer, but this is not what I want to do; probably my 
question was not so clear, 
so I rewrite it in a more accurate way (at least I hope :-)

I'm writing a simple editor, and I want that when a user press a tab-key this char is 
automatically replaced 
with some spaces. I've tried to added a callback to the "insert-text" signal but using 
this event I obtain a 
buffer with some spaces after a tab  (instead of one with only spaces).
Which signal should i use?

Thank you

Pier Carteri

Christian Reis <[EMAIL PROTECTED]> wrote on 21/07/02 21.21.26:
>
>On Sun, Jul 21, 2002 at 07:13:50PM +0200, [EMAIL PROTECTED] wrote:
>> 
>> 
>> Hi to all,
>> i'm looking for the easiest way to automatically replace tab with spaces into a
>> GtkTextBuffer. Has anyone already found the solution?
>
>string.replace("\t"," ",buffer.get_text()) ?
>
>Take care,
>--
>Christian Reis, Senior Engineer, Async Open Source, Brazil.
>http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to