Hello, I was banging my head against the wall trying to properly embed the FileChooserWidget into a gnome DruidPageStandard widget.
The basic worked fine:
p = gnome.ui.DruidPageStandard()
p.set_title(_('Selecting the file name'))
chooser = gtk.FileChooserWidget(gtk.FILE_CHOOSER_ACTION_SAVE)
p.append_item("",chooser,"")
But the above results in a very tiny browser when "Browse for other folders"
arrow is expanded into the browser.
I found a ditry way of setting proper EXPAND and FILL properties on
the FileChooserWidget's packing:
parent = chooser.get_parent()
parent.set_child_packing(chooser,1,1,0,gtk.PACK_START)
gradnparent = parent.get_parent()
gradnparent.set_child_packing(parent,1,1,0,gtk.PACK_START)
as it turned out that the druid packs FileChooserWidget inside two VBox-es.
Therefore, both parent.set_child_packing() and grandparent.set_child_packing()
calls are essential.
I could not find any other way to have the FileChooserWidget have the
EXPAND and FILL properties to follow the window resize. Does this seem
like a bug? I'm not sure what to file the bug against. I would pick
DruidPageStandard, but maybe I'm missing something obvious?
Thanks in advance,
Alex
--
Alexander Roitman http://ebner.neuroscience.umn.edu/people/alex.html
Dept. of Neuroscience, Lions Research Building
2001 6th Street SE, Minneapolis, MN 55455
Tel (612) 625-7566 FAX (612) 626-9201
signature.asc
Description: Digital signature
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
