[pygtk] set_tabs in a gtk.TextView

John Pye john.pye at student.unsw.edu.au
Wed Jul 5 17:30:05 WST 2006


Hi John

That was exactly the problem. For some reason I thought pango.SCALE 
defaulted to one, which was obviously wrong.

I switched to TabArray(n,True) and it works now (with pixel sizes).

Thanks,

JP

John Finlay wrote:
> John Pye wrote:
>> I would have expected that if I set_tabs on my TextView, then stuck 
>> the text into the associated TextBuffer, then it would render such 
>> that the text following '\t' characters line up with the tab stops I 
>> specify.
> That should work. One thing to watch out for is the units used for the 
> tab positions. Pango units are really small compared to pixel units 
> (1024:1)
>
> John
>
-- 
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia
http://pye.dyndns.org/



More information about the pygtk mailing list