= context.get_source_widget() # src_widget = notebook here
the_page_number = int(selection.data)
child_widget = src_widget.get_nth_page(the_page_number)
===End of code===
Zyphos
Zyphos a écrit :
Hi,
I try to make a DND from a gtk.Notebook to another widget.
I receive the 'selection' on the other widget
Hi,
a solution is written into the FAQ:
http://faq.pygtk.org/index.py?req=showfile=faq13.043.htp
treeview.freeze_child_notify()
treeview.set_model(None)
# Add rows to the model
# ...
treeview.set_model(model)
treeview.thaw_child_notify()
Regards,
Zyphos
Tim Evans a écrit :
On 2010-07
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: