Am 06.07.2012 23:52, schrieb John Ralls: >>>> from gi.repository import Gtk >>>> label = Gtk.Label() >>>> label.drag_dest_set(0, [], 0) > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > AttributeError: 'Label' object has no attribute 'drag_dest_set' >>>> button = Gtk.Button() >>>> button.drag_dest_set() > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > AttributeError: 'Button' object has no attribute 'drag_dest_set' > > > WTF? Button and Label are both descendants of GtkWidget, which, according to the PyGObject tutorial [0] is supposed > to implement drag_dest_set(). The example in the tutorial also fails with this error. > > Git master within the last 36 hrs or so of GLib, Gtk, GI, and PyGObject (and everything else), built with llvm-gcc on OSX 10.7. > > Regards, > John Ralls > > [0] http://python-gtk-3-tutorial.readthedocs.org/en/latest/drag_and_drop.html Hi John, AFAICT, nothing changed with regard to DnD methods in pygobject or GTK. Please double-check that you compiled pygobject against the correct version of GTK and its dependencies. Best regards, Sebastian Pölsterl
Attachment:
signature.asc
Description: OpenPGP digital signature