On 8/17/06, Johan Dahlin <[EMAIL PROTECTED]> wrote:
Arnau Sanchez wrote:
[..]

> iter = model.get_iter_first()
> while iter:
>     print "value:", model.get_value(iter, 0)
>     iter = model.iter_next(iter)

The preferred pythonic way of doing that is this:

for row in model:
  print 'value:', row[0]

--
Johan Dahlin <[EMAIL PROTECTED]>
Async Open Source
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/



>>model = 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
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to