Re: [pygtk] yet another gtk.Notebook question

2007-05-06 Thread John Finlay
N. Volbers wrote: After having solved my first problem, I now have another one: When I retrieve a drag-drop event, I would like to know, which notebook tab was dropped. In the C API, the example looks like this: static void on_drop_zone_drag_data_received (GtkWidget*widget,

[pygtk] Close button in notebook tab (without html... Sorry) [solved]

2007-05-06 Thread Sylvain Saleur
N. Volbers wrote: You can use notebook.remove(widget) to remove the proper notebook tab. Of course, then the callback needs to know, which widget it should remove. I suggest passing the frame to the create_custom_tab method: eventBox = self.create_custom_tab("Tab %d" % page_number, notebook,

Re: [pygtk] Close button in notebook tab [solved]

2007-05-06 Thread Sylvain Saleur
N. Volbers wrote: You can use notebook.remove(widget) to remove the proper notebook tab. Of course, then the callback needs to know, which widget it should remove. I suggest passing the frame to the create_custom_tab method: eventBox = self.create_custom_tab("Tab %d" % page_number, notebook

[pygtk] yet another gtk.Notebook question

2007-05-06 Thread N. Volbers
After having solved my first problem, I now have another one: When I retrieve a drag-drop event, I would like to know, which notebook tab was dropped. In the C API, the example looks like this: static void on_drop_zone_drag_data_received (GtkWidget*widget,

Re: [pygtk] gtk.Notebook dnd to other widgets [SOLVED]

2007-05-06 Thread N. Volbers
Gian Mario Tagliaretti schrieb: > 2007/5/6, N. Volbers <[EMAIL PROTECTED]>: > >> I found the problem! The documentation is wrong. If you look at the >> original API documentation of gtk+, it will say that the target is >> "GTK_NOTEBOOK_TAB" and not (like it says in the pygtk documentation) >> "gtk

Re: [pygtk] gtk.Notebook dnd to other widgets [SOLVED]

2007-05-06 Thread Gian Mario Tagliaretti
2007/5/6, N. Volbers <[EMAIL PROTECTED]>: I found the problem! The documentation is wrong. If you look at the original API documentation of gtk+, it will say that the target is "GTK_NOTEBOOK_TAB" and not (like it says in the pygtk documentation) "gtk.NOTEBOOK_TAB". gtk.NOTEBOOK_TAB is the pyth

Re: [pygtk] gtk.Notebook dnd to other widgets [SOLVED]

2007-05-06 Thread N. Volbers
Niklas Volbers schrieb: > Hi everyone! > > I am using the reorderable and detachable properties of gtk.Notebook tabs > (pygtk 2.10). > > Now I wanted to implement dragging a notebook tab to an event box, but > somehow my event box will not respond to the dnd event from the notebook tab. > I am