logo       

Re: Multiple columns in a ComboBoxEntry: msg#00131

gnome.gtk+.python

Subject: Re: Multiple columns in a ComboBoxEntry

John Finlay wrote:
You can pack more cell renderers into the comboboxentry for display in the popdown menu by using the CellLayout pack_start() method and then set the attributes using the set_attributes() or add_attribute() methods:

cell = gtk.CellRendererText()
combo.pack_start(cell)
combo.add_attribute(cell, 'text', 2)

Repeat as needed :-)

Thanks, that's working.
_______________________________________________
pygtk mailing list pygtk@xxxxxxxxxx
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise