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

N. Volbers mithrandir42 at web.de
Sun May 6 18:06:56 WST 2007


Gian Mario Tagliaretti schrieb:
> 2007/5/6, N. Volbers <mithrandir42 at web.de>:
> 
>> 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 python equivalent of the C's GTK_NOTEBOOK_TAB,
> it should not even work if you use the latter.
> 
> cheers

The target is a string, not a constant, i.e. the target is something like

  ("GTK_NOTEBOOK_TAB", ... )

Actually, there is not even a gtk.NOTEBOOK_TAB.  Using the above string
works fine.

Niklas.




More information about the pygtk mailing list