[pygtk] renderer, style and drag-n-drop

Laurent G. lauranger at free.fr
Wed Jan 2 08:00:16 WST 2008


Hi
I managed to write a kind of ColorButtonCellRenderer trying to use
Styles. No fully satisfying but quite functionnable until I set my
TreeView row-reorderable. On dragging on_render get passed a pixmap
instead of a window and the style methode "vomit" a :

TypeError: GtkStyle.paint_box() argument 1 must be gtk.gdk.Window, not
gtk.gdk.Pixmap
Traceback (most recent call last):
  File "./mapcolorist.py", line 99, in on_render
    cell_area.width,  cell_area.height)

Apart from mimic-ing style code for a drawable what are the options to
face this trickage (illegal but legitimate in my mind) from drag-n-drop
code ?

Thanks in advance for any advice or explanation.

Laurent G.


More information about the pygtk mailing list