> Quoting Alan Franzoni: > >> If you want to stop *all rows* from being draggable, here's a quick >> hack: >> >> treeview.drag_source_unset() >> treeview.drag_dest_unset() >> >> Truly speaking, they can be dragged anyway, but they won't drop >> anywhere. >> >> If you wanted to prevent just some rows from being dragged... I don't >> know, >> maybe you could connect a callback to dynamically set/unset >> drag_source , >> but I think there'll be a better way around that. > > Thanx for the reply. I should have mentionned that I need some rows to > be draggable and some not.
In a gtkmm example, we do this by deriving from the TreeModel and overriding some of its vfuncs: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch08s06.html As far as I can tell, this is how to do it in C as well. I'm not sure if pygtk offers a way to do this. The gtkmm example: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch08s08.html#id2521693 Murray Cumming [EMAIL PROTECTED] www.murrayc.com www.openismus.com _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
