On Wed, Feb 02, 2005 at 12:28:26PM -0600, Mauricio Tellez wrote: > Hi, i'm writting a little app which has a FileChooserWidget. When I > select a file, I do something with that file content, and then try to > save the file. If there is an error, perhaps for file's permission, I > want to turn red that file's row, but until now I don't know how to > access the FileChooserWidget's treeview, if there is any. Thanks >
There must be one, but they probably don't want you to access it directly. Fortunately, they can make it hard for you to access, but I think they can't prevent you from accessing it. So, here's how you can access it. (*Crack*) fcw = gtk.FileChooserWidget() fcd = fcw.get_children()[0] rvbox = fcd.get_children()[1] hpaned = rvbox.get_children()[0] vbox = hpaned.get_child1() scrolled = vbox.get_children()[0] tv = scrolled.get_child() This is tested on gtk2.4.10's FileChooserWidget. It may not work on other versions, so you should not use this unless you have no option and you really need to do it. Cheers, -- Guilherme Luis R. Salgado _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
