Hi list,

I'm reading the tutorial, testing samples.
However i don't know how to proceed for implementing dragging data from a treeeview and dropping it in a notebook.

For the moment, i added this lines for dragging from the treeview.

       self.TARGETS = [
           ('MY_TREE_MODEL_ROW', gtk.TARGET_SAME_WIDGET, 0),
           ('text/plain', 0, 1),
           ('TEXT', 0, 2),
           ('STRING', 0, 3),
           ]
# Allow enable drag and drop of rows including row move
       self.treeview.enable_model_drag_source( gtk.gdk.BUTTON1_MASK,
                                                self.TARGETS,
                                                  gtk.gdk.ACTION_DEFAULT|
                                                 gtk.gdk.ACTION_MOVE)
       self.treeview.connect("drag_data_get", self.drag_data_get_data)

I don't know how self.TARGETS works and what i must put for the notebook.

Has anybody already done that?

Thanks a lot,
Philippe Collet




_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to