Hi, I try to make a DND from a gtk.Notebook to another widget. I receive the 'selection' on the other widget.
The documentation say: "The notebook will fill the selection with a reference to the child widget that corresponds to the dropped tab." Src: http://library.gnome.org/devel/pygtk/stable/class-gtknotebook.html#method-gtknotebook--set-tab-detachable Here is the selection of this DND ('drag-data-received'): Selection: SelectionData: <GtkSelectionData at 0xbfcc1cc4> .data: str: �� .format: int: 8 .selection: str: XdndSelection .target: str: GTK_NOTEBOOK_TAB .type: str: GTK_NOTEBOOK_TAB But selection.data is a string with this "str: �� " (I think this is a pointer reference to the C code child widget) it isn't usable with Python. How can I retrieve the notebook child widget which the DND come from ? Thank you for any suggestion. _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
