Thanks Walter and Doug for the wonderful TreeView DND example. Finally I was able to go get the DND constraints I want in my application.
But what I still can't figure out is how to communicate these to the user. There must be a way to tell GTK that i can't drop from that source row to this dest row, so the DND doesn't look like it's going to happen. I've tried connected 'drag-motion' events and conditionally calling drag_context.set_reply(False, time) from it. Which does nothing until i kill the normal handler, but then it just stops all drops. http://www.moeraki.com/pygtkreference/pygtk2reference/class-gtktreedragdest.html row_drop_possible() looks like the right idea, but i don't know how to hook it up. Any suggestions? If you want to talk in tested code, i have a base available at http://mu.arete.cc/treeviewdnd.py ; in that example i'd like to make it so you can only drop a row on a row of a preceding letter, but not do this by filtering in drag_data_received. -m -- Michael Urman [- [EMAIL PROTECTED] -] _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
