On 6/26/06, David Keogh <[EMAIL PROTECTED]> wrote:
Can someone give me a hint on how to drag multiple items from a gtk.TreeView? When I select mutliple rows and then click on one of them to begin the drag all the other selected rows are lost. I noticed that some Gtk+ apps written in C (file-roller for instance) use eggtreemultidnd.c (http://stuff.mit.edu/afs/dev/source/src-current/third/file-roller/src/eggtreemultidnd.c ) to get achieve this behaviour, is there no way to do this in Python?
If you're willing to leverage GPLv2 source, see http://www.sacredchao.net/quodlibet/browser/trunk/quodlibet/qltk/views.py for the MultiDragTreeView class - you may want to change out what it draws in __begin, but other than that it should be nearly drop-in. There's some other goodies in that file if you like them. Michael -- Michael Urman http://www.tortall.net/mu/blog _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
