[pygtk] gtk.TextView dimensions

A.T.Hofkamp a.t.hofkamp at tue.nl
Tue Dec 18 16:52:49 WST 2007

Lennon Cook wrote:
> Is there a way to set the dimensions of a TextView in units of
> characters wide, and lines high?

Eh, what is the 'unit of characters wide' with a proportional font?

For a fixed font, take any character, query its width and height, and multiply 
by the desired number of lines and characters seems to be the easiest solution.


More information about the pygtk mailing list