On 2003-08-05, Yang Zheng <[EMAIL PROTECTED]> wrote:
> Can I not delete iterator like this?

Hmmm... can't say what you do wrong, but here's my deletion code,
maybe it helps you:

   selection = self.list_view.get_selection()
   model, iter, = selection.get_selected()
   if iter:
      path = model.get_path(iter)
      model.remove(iter)
      selection.select_path(path)
      if not selection.path_is_selected(path):
         row = path[0]-1
         if row >= 0:
            selection.select_path((row,))

-- 
 Please don't send me private copies of your public answers. Thanks.
_______________________________________________
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