Re: [pygtk] delete selection

2003-10-06 Thread Yang Zheng
Hello, I cannot get to the faq site. The operation always time out. Is anyone else having the same problem? thanks, ~ Yang On Fri, 2003-10-03 at 19:21, Christian Reis wrote: > On Wed, Oct 01, 2003 at 01:46:50PM -0700, Yang Zheng wrote: > > I've figured out how to delete multiple selections. I

Re: [pygtk] delete selection

2003-10-06 Thread Christian Reis
On Mon, Oct 06, 2003 at 10:25:24AM -0700, Yang Zheng wrote: > I cannot get to the faq site. The operation always time out. Is anyone > else having the same problem? Well, I moved the FAQ question too, and that won't help (our network connectivity seems okay to me at least, but we've got a thin s

Re: [pygtk] delete selection

2003-10-03 Thread Christian Reis
On Wed, Oct 01, 2003 at 01:46:50PM -0700, Yang Zheng wrote: > I've figured out how to delete multiple selections. If anyone runs into -> FAQ 13.22 http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.022.htp If you see anything wrong or worth improving, feel free to hack it :-) T

Re: [pygtk] delete selection

2003-10-01 Thread Yang Zheng
I've figured out how to delete multiple selections. If anyone runs into the same problem, here's what I have learned: pygtk does not allow treemodel.remove(iter) in the selected_foreach(...) function, so I had to store all the iterators for the selected rows and then go back to delete them. The i

Re: [pygtk] delete selection

2003-09-26 Thread Yang Zheng
Sorry for such a late response, but I just had a chance to come back to the pygtk stuff. Thank you for your help. I tried using the following code and it worked. However, it is meant only delete one row at a time right? (since get_slected() does not work in SELECTION_MULTIPLE mode) If I would l

Re: [pygtk] delete selection

2003-08-14 Thread Christian Reis
On Tue, Aug 05, 2003 at 09:42:56AM -0700, Yang Zheng wrote: > "(SimGuiClient.py:20194): Gtk-CRITICAL **: file gtktreeselection.c: line > 491 (gtk_tree_selection_selected_foreach): assertion `has_next' failed. > There is a disparity between the internal view of the GtkTreeView, > and the GtkTreeMode

Re: [pygtk] delete selection

2003-08-14 Thread Grzegorz Adam Hankiewicz
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

[pygtk] delete selection

2003-08-07 Thread Yang Zheng
Hello, I am trying to implement a GUI showing a list in TreeView/TreeStore. I would like to be able to select a range of values from the list and press a button to delete it. However, I keep getting the following error when trying to delete: "(SimGuiClient.py:20194): Gtk-CRITICAL **: file gtktr