Re: [pygtk] Getting font info.

1999-06-30 Thread James Henstridge
There are a few ways of going about this. If the list is not very big, you can get gtk to automatically resize a column with the GtkCList.set_column_auto_resize(col) method. If you want to find the width of a particular piece of text and you have a reference to the font object

Re: [pygtk] Getting font info.

1999-06-30 Thread Deirdre Saoirse
Or if they're using a different language, the word widths would be different for the text in their language. :) A good rule of thumb is to allow 30% extra width from a normal width font in English. This is speaking as a Mac programmer who's had to deal with multi-language support and is not

Re: [pygtk] Getting font info.

1999-06-30 Thread Harry Henry Gebel
you can get gtk to automatically resize a column with the GtkCList.set_column_auto_resize(col) method. If you want to find Thanks for the information, I settled on setting the columns to auto resize when filling them with the initial data, then turning auto resizing off after showing the

Re: [pygtk] Getting font info.

1999-06-30 Thread James Henstridge
If you only want to do the sizing once, a more efficient way would be to add all the rows and call the GtkCList.columns_autosize() method which will resize all the columns to the optimal widths without causing them to resize every time a cell is changed. James. -- Email: [EMAIL PROTECTED] WWW: