Re: [pygtk] Determining string width in GNOME 2?

2002-09-08 Thread James Henstridge
Don Allingham wrote: >In the past, I've been able to determine the width of a string before it >is displayed by using the width() method of a GdkFont. With the change >to Pango, this method no longer seems to apply. While I can get a >GdkFont, and use the string_width method, it doesn't seem to r

[pygtk] Determining string width in GNOME 2?

2002-09-08 Thread Don Allingham
In the past, I've been able to determine the width of a string before it is displayed by using the width() method of a GdkFont. With the change to Pango, this method no longer seems to apply. While I can get a GdkFont, and use the string_width method, it doesn't seem to return a correct value. Is