Re: [pygtk] textview: how to insert characters?

2003-08-07 Thread Christian Reis
On Fri, Aug 01, 2003 at 01:10:13PM +0200, Riccardo Galli wrote: > def on_insert_text(self,buffer,textIter,char,*args): > buffer.disconnect(self.signal_id) > if textIter.get_chars_in_line()==6 : > newIter=buffer.get_iter_at_offset(2) > buffer.insert(newIter,'X') > buf

Re: [pygtk] textview: how to insert characters?

2003-08-03 Thread Tom Cato Amundsen
On Fri, Aug 01, 2003 at 01:10:13PM +0200, Riccardo Galli wrote: > Hello world. > > I'm trying to insert characters in a textview, in a position different from the one > where's the cursor. > > I'm alwais getting this warning: > Gtk-WARNING **: Invalid text buffer iterator: either the iterator is

[pygtk] textview: how to insert characters?

2003-08-01 Thread Riccardo Galli
Hello world. I'm trying to insert characters in a textview, in a position different from the one where's the cursor. I'm alwais getting this warning: Gtk-WARNING **: Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been mod