Re: [pygtk] Drag and drop (DND) of gtk.Notebook tab to another widget [SOLVED]

2010-07-13 Thread Zyphos
= 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

Re: [pygtk] push huge array into liststore

2010-07-13 Thread Zyphos
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

[pygtk] Drag and drop (DND) of gtk.Notebook tab to another widget

2010-07-12 Thread Zyphos
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: