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