> You'll probably end up with something like this:
> 
> selection.unselect_all()

> iter = model.get_iter_first()
>   while iter:
>     value = model.get_value(iter, column)
>     if value is what I'm looking for:
>         selection.select_iter(iter)
>     iter = model.iter_next(iter)

Or, the same thing using a slightly more pythonic api;

for row in model:
  if row[column] is what I'm looking for:
      selection.select_iter(iter)
      break

-- 
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/

Reply via email to