[pygtk] Builder correct to switch?

Alessandro Dentella sandro at e-den.it
Sun Dec 19 00:30:05 WST 2010


On Tue, Dec 14, 2010 at 01:02:15AM +0100, francesco a promotux.it wrote:
> >  5. I'm having problems under gtk 2.14: .add_from_string() needs one more
> >      arg (the length of the xml text), but even in that case Builder
> >      complains about wrong caracter in utf-8 in the last position of the
> >      buffer (corresponding to '>' of</interface>)...
> >
> 
> i don't know about that

this turns out it was my error, I was changing the xml between 2 run and
lenght was not the correct one.  builder.add_from_string(obj.xml(), len(obj.xml()))

> >I'm uncertain whether switching now is a good thing, I started becouse I
> >wanted to get rid of a dependancy but I'm afraid it turns in more problems
> >due to needed upgrade.

Just to clear possible shadows: all problems have been solved and there's no
drawback for me passing from glade to Builder (tested with pygtk 2.12+).

Thanks to Francesco, Dieter and Marian.

I addec  FAQs 22.14 /22.15 on this subjects

sandro
*:-)


-- 
Sandro Dentella  *:-)
http://www.reteisi.org             Soluzioni libere per le scuole
http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy


More information about the pygtk mailing list