[pygtk] Gtk.CellRendererCombo
Milton Galo Patricio Inostroza Aguilera
minoztro at gmail.com
Thu Jul 19 23:07:23 WST 2007
Hello,
I am using pygtk for all my softwares projects and I am very happy with it.
I am work with gtk.CellRendererCombo() in the following way:
lbl = unicode('Tipo Producto')
cell=gtk.CellRendererCombo()
self.modelo_tipo_producto=gtk.ListStore(str)
self.modelo_producto=gtk.ListStore(str)
cell.set_property("model",self.modelo_tipo_producto)
cell.set_property('text-column', 0)
cell.set_property('editable',True)
cell.set_property('has-entry', False)
cell.connect('edited', self.fgn_edita_celda_tipo_producto, self.modelo)
column = gtk.TreeViewColumn(lbl.encode('utf-8'), cell,text=1)
self.treeviewDatos.append_column(column)
All works fine but, I would like that the combobox was shown in the cell.
The combobox is shown in the cell only when edited not before.
Does this option exist for the CellRendererCombo() ?
Thanks for your help and saludos desde Chile.
--
Milton Inostroza Aguilera
More information about the pygtk
mailing list