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

awalter1 alain.walter at thalesgroup.com
Wed Dec 5 00:33:48 WST 2007




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 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.ComboActivate, liststore)
>> 
>> def ComboActivate(self, combo, liststore):
>>    ...
>> 
>> >From ComboActivate how to retrieve the list of data liststore contains ?
>> Is it possible to get these data directly from combo (that avoid the
>> liststore parameter) ?
>> 
>> Thank you
>> 
>> 
>> 
>> 
> -- 
> <--Linux... Because I'm Free-->
> Marco Antonio Islas Cruz
> "Markuz"
> Linux User #280229
> markuz at islascruz.org
> markuz at unixmexico.org
> markuz at linuxpozarica.com
> marco.islas at gmail.com
> islacruz at yahoo.com
> http://www.islascruz.org
> http://sourceforge.net/projects/gpkg/
> http://www.linuxpozarica.com
> 
>  
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> 
> 

-- 
View this message in context: http://www.nabble.com/retrieve-data-store-in-a-gtk.ListStore-tf4923740.html#a14152886
Sent from the Gtk+ - Python mailing list archive at Nabble.com.



More information about the pygtk mailing list