from gi.repository import Gtk, Gdk

def motion(tree, event):
	print event #prints <void at 0x22746a0> this should be Gdk.Event surely? under gtk2 was gtk.gdk.Event
	print event.type #prints <enum GDK_MOTION_NOTIFY of type GdkEventType>
	anEntry = Gtk.TargetEntry.new("abox",Gtk.TargetFlags.SAME_WIDGET, 10)
	tree.drag_begin(Gtk.TargetList.new([anEntry]), Gdk.DragAction.COPY, 1, event)

treeview = Gtk.TreeView()
treeview.connect('motion-notify-event', motion)

win = Gtk.Window()
win.add(treeview)
win.show_all()

Gtk.main()

