On Fri, 2003-11-07 at 04:56, Harobed wrote:
> Le jeu 06/11/2003 � 19:18, Harobed a �crit :
> > Hello,
> >
> > I would like append value to combo.list
> >
> > This code don't work :
> >
> > combo=gtk.Combo()
> > combo.list.append("foo") <-- error here
> >
> > Warning: I don't want use combo.set_popdown_strings() !
> >
> > I would control the list.
> >
> > Thanks
> Nobody can help me ?
I missed your initial message and I'm using 1.2 so this might not be the
same in 2.X. I use this function to load up a combobox:
def initializeCombo(self, widname, list, choice=None):
w = self.wtree.get_widget(widname)
w.list.clear_items(0, -1)
l = []
for i in list:
item = gtk.GtkListItem(label = i)
item.show()
l.append(item)
w.list.append_items(l)
if choice or choice == '':
w.entry.set_text(choice)
if not choice and not list:
w.entry.set_text('')
>
> -- St�phane KLEIN
> Home page : http://www.harobed.org
> Jabber : [EMAIL PROTECTED]
>
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
--
Steve McClure <[EMAIL PROTECTED]>
Racemi, Inc.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
