[pygtk] how to clear out a comboboxentry

Johan Dahlin jdahlin at async.com.br
Fri Aug 18 03:56:12 WST 2006


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 <jdahlin at async.com.br>
Async Open Source


More information about the pygtk mailing list