Hello,

I'm trying to get width of a text string. I found a FAQ 4.15 
(http://faq.pygtk.org/index.py?req=show&file=faq04.015.htp) which has a 
solution for this. But unfortunately it doesn't work. If I use "font = 
widget.get_style().font", I get following error message: AttributeError: 
'gtk.Style' has no attribute 'font'.

Is the FAQ outdated? What syntax should I use?

Thank you
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to