Drag_dest_set



>>> 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]