Re: re[pygtk] trieve data store in a gtk.ListStore

2007-12-04 Thread awalter1
Hello, I get my answer : the followning directive gets the list of data displayed from the combo reference. It is what I'm looking for. items = self.combo.get_model() Thank you for all Marco Antonio Islas Cruz-2 wrote: > > The combo is just a Viewer, it never stores data, just shows it. In

Re: re[pygtk] trieve data store in a gtk.ListStore

2007-12-04 Thread awalter1
Marco Antonio Islas Cruz-2 wrote: > > The combo is just a Viewer, it never stores data, just shows it. In > order to retrieve data you need to use the model (liststore, treestore, > or another TreeModel kind of object) > > > On Fri, 2007-11-30 at 06:24 -0800, awalter1 wrote: >> Hi, >> >> I h

Re: re[pygtk] trieve data store in a gtk.ListStore

2007-12-04 Thread awalter1
Marco Antonio Islas Cruz-2 wrote: > > The combo is just a Viewer, it never stores data, just shows it. In > order to retrieve data you need to use the model (liststore, treestore, > or another TreeModel kind of object) > > > On Fri, 2007-11-30 at 06:24 -0800, awalter1 wrote: >> Hi, >> >> I h

Re: re[pygtk] trieve data store in a gtk.ListStore

2007-12-04 Thread awalter1
Marco Antonio Islas Cruz-2 wrote: > > The combo is just a Viewer, it never stores data, just shows it. In > order to retrieve data you need to use the model (liststore, treestore, > or another TreeModel kind of object) > > > On Fri, 2007-11-30 at 06:24 -0800, awalter1 wrote: >> Hi, >> >> I h

Re: re[pygtk] trieve data store in a gtk.ListStore

2007-12-02 Thread Stephen George
I am able to access the data of the model as such items = self.combo.get_model() for item in items: print 'Found Item: ', item[0] Steve awalter1 wrote: Hi, I have some difficulties to manipulate ListStore. I define a liststore and associated it to a combobox: lis

Re: re[pygtk] trieve data store in a gtk.ListStore

2007-11-30 Thread Marco Antonio Islas Cruz
The combo is just a Viewer, it never stores data, just shows it. In order to retrieve data you need to use the model (liststore, treestore, or another TreeModel kind of object) On Fri, 2007-11-30 at 06:24 -0800, awalter1 wrote: > Hi, > > I have some difficulties to manipulate ListStore. I define

re[pygtk] trieve data store in a gtk.ListStore

2007-11-30 Thread awalter1
Hi, I have some difficulties to manipulate ListStore. I define a liststore and associated it to a combobox: liststore = gtk.ListStore(str) fieldCombo = gtk.ComboBox(liststore) liststore.append(['Field']) for field in l_fields: liststore.append([field]) fieldCombo.connect('changed', self.C