[pygtk] how to clear out a comboboxentry
shawn bright
nephish at gmail.com
Fri Aug 18 04:19:09 WST 2006
On 8/17/06, Johan Dahlin <jdahlin at async.com.br> wrote:
>
> Arnau Sanchez wrote:
> [..]
>
> > iter =3D model.get_iter_first()
> > while iter:
> > print "value:", model.get_value(iter, 0)
> > iter =3D model.iter_next(iter)
>
> The preferred pythonic way of doing that is this:
>
> for row in model:
> print 'value:', row[0]
>
> --
> Johan Dahlin <jdahlin at async.com.br>
> Async Open Source
> _______________________________________________
> 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/
>>model =3D gtk.ListStore(gobject.TYPE_STRING)
>># comboboxentry read from glade tree
>>comboboxentry.set_model(model)
Well, i think that this is part of my problem. I am using glade and a script
that auto-generates a kinda starter .py script to build on, but its ....
less than ideal. Do you have a link to a good site that documents how to use
glade with python ?
i appreciate all of this a lot .
shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20060817/405fc9ab/at=
tachment.htm
More information about the pygtk
mailing list