In Python the insert method doesn't need the length argument - it is
optional.  If omitted it will use the length of the string passed in
automatically.

Cheers,

Matt 

On Mon, Mar 04, 2002 at 03:19:30PM +0100, Pier Carteri wrote:
> I'm sorry, probably I must count to 10  before sending a mail to the
> list, because the solution was in front of me :-P 
> Reading the c doc of gtk2 I've notice that if I use
> 
> self.buffer.insert(start,text,-1)
> 
> the string must be Null terminated; so I've changed that line with
> 
> self.buffer.insert(start,text,len(text))
> 
> and everythings works!
> Sorry again for the spam
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to