Krzysztof Kotlenga wrote: > Hi, > > I have a program which, I believe, should do the same thing in both > Python and C - set pango attributes on a label. The C version works > as expected. In PyGTK version attributes get applied only on the first > character. Any ideas why does this happen? I attach both test cases. > > The pygtk pango docs say that the end_index is 1 by default. You need to specify the end_index=-1 to get the same behavior as the C code. Pango C code started to set the attribute end_index to a default value in version 1.20 and the default value used was end of string.
John _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
