Adding values to combo box in pygtk

Arun p das <[email protected]>
Newsgroups gmane.comp.gnome.glade.user
Message-ID <CAHm4=rotNjHZQb1rg26kgdvuCYGsvJ_bQFdVUrejnqtSkwnXqA@mail.gmail.com>
I dragged and drop the combobox from glade and now in python code i am
trying to add values to glade.
I don't know how to do that if anyone has any idea please reply.

   I tried with this


   1. data = ["a","b"]
   2.  self.box=self.tree.get_widget("combobox1")
   3.     store=gtk.ListStore(str)
   4.     store.append(["Choose a name"])
   5.     for d in data:
   6.         store.append([d])
   7.     self.box.set_model(store)



I am new to glade and python i got the above code from one site but it didn'
t worked also don't know GTK part in this program doing.

_______________________________________________
Glade-users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.