[pygtk] Drag'n'Drop treeview rows

Andrew Steele steeley.uk at gmail.com
Wed Aug 25 00:58:02 WST 2010


On 29 July 2010 05:22, Kimet Adil <ksadil at gmail.com> wrote:

> Hi,
>
> If I have 2 treeviews, treeview1 displays a list of teaching subjects
> (maths, history, etc) and another treeview2 with teachers names.  I would
> like to drag teacher rows out of treeview2 and drop them as children of the
> subject rows in treeview1. Idealy they would disappear from treeview 2 after
> they have been dragged into treeview 1.
>
>
> I am not asking for someone else to code this for me but any guidance or
> suggestions on how to approach this would be appreciated. I am using:
>
> http://www.pygtk.org/pygtk2tutorial/examples/treeviewdnd.py
>
> as a starting point.
>
> Thanks,
> Kim
>

I think this is an example of what you're looking for:
http://www.learnpygtk.org/coderepository/treeviewdragdrop.py
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20100824/24d30812/attachment-0001.html>


More information about the pygtk mailing list