How do I get the X font-info from a GdkFont?
In C I should be able to just use get_font_id(), but as far as I can tell, this
isn't implemented in PyGTK yet?
I want to use to reload a font in italic, if there's another way to do italic
fonts, I'll use it ;)
P.S. It's not for use on labels but by
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:
> 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 li
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 based
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 (widget.get_style(
Hello,
I am just learning to program X and so far the only experiance I have
had is using python and pyGTK/pyGnome. I am writing a program that uses
the GtkCList class and in the GTK tutorial they stress the importance of
setting the correct widths for the various columns, at first I was j