Aaron Optimizer Digulla wrote:

> Quoting Steve Cresawn <[EMAIL PROTECTED]>:
>
> > > > I' have a window that contains 2 clists, and I'm trying to drag and
> > drop
> > > > from each of them to the other one.  However, I don't want to be
> > able to
> > > > drag
> > > > and drop from either to itself.  I do want to be able to drag to
> > reorder
> > > > each
> > > > list, though, using:
> > > > clist.set_reorderable(TRUE)
> > >
> > > What is the difference between reorder and DnD to itself ?
> >
> > Well, when I have the clist set to reorderable, I see a line put between
> > items
> > in the list that indicates where a row will be inserted as it is dragged
> > over
> > the clist.  I like this behavior, but I don't see it when using drag and
> > drop
> > from the clist to itself.  In this case, the entire clist widget gets
> > "highlighted" as I drag over any part of it.
> >     I really like the horizontal line that appears with the clist set to
> > be
> > reorderable.  However, I can't figure out how to have the clist
> > reorderable,
> > and allow the clist to receive drops from widgets other than itself.
> > Incidentally, I did see that there's a way for a widget to accept drops
> > only
> > from itself, but what I want is just the opposite.  I hope this is a bit
> > clearer than my original post.
>
> Ah. Well, internally, there is no difference between "reorder" and DnD
> (the list uses DnD to implement reorder), so I fear that it's not
> possible. I also don't see a simple solution since you cannot switch
> between the two modes by simply changing reorder (in that case, I would
> have proposed to add a toggle to switch). But as it is, you must remove
> all drag-info from the list and that will be a lot of effort :-/

Very well then.  Assuming I give up on the idea of using reorderable clists,
can you tell me how I can do the rest of what I want?  That is, drag from
either list to the other, but not to itself?
Thanks again,
Steve


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to