[pygtk] Re: Two columns in ComboBox with add_attribute

Jeffrey Barish jeff_barish at earthlink.net
Thu May 10 05:09:17 WST 2007


Jeffrey Barish wrote:

> Also, I want the box to display the first item as soon as I create the
> ComboBox.  What is the easiest way to do this?

I solved this one.  The child of the combo is a CellView, for which there is
a set_displayed_row method.

cellview = combo.get_child()
cellview.set_displayed_row(0)


Still wondering about combo.add_attribute().
-- 
Jeffrey Barish



More information about the pygtk mailing list