[pygtk] set_tabs in a gtk.TextView
John Pye
john.pye at student.unsw.edu.au
Wed Jul 5 15:15:15 WST 2006
Hi all,
I have some plain text material that I want to show in a TextView. The
plaintext contains some tab characters, \t.
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.
Should this work? Or am I misunderstanding how to use this? Are there
flags on the TextView that I need to set, perhaps?
Cheers
JP
--
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