[pygtk] Can't use FileChooserButton

Sebastien Aubry aubry at cena.fr
Sat Apr 1 00:21:12 WST 2006


Hi,

I am having problems using the FileChooserButton widget with PyGtk 2.6.1 :

 >>> import gtk
 >>> filechooserbutton = gtk.FileChooserButton('Select a File')

(.:10483): Pango-WARNING **: Invalid UTF-8 string passed to 
pango_layout_set_text()

I also tried :

 >>> filechooserbutton = gtk.FileChooserButton('Select a 
File'.encode("utf-8"))

And many other things.
The "Pango warning" item of the FAQ did not help me with this issue.

Googling : filechooser "invalid utf-8"
gives : http://mail.gnome.org/archives/gtkmm-list/2005-August/msg00009.html

but setenv G_FILENAME_ENCODING ISO-8859-1 didn't help

How can I get rid of this warning?

Thanks

-- 
Sébastien AUBRY



More information about the pygtk mailing list