Hi !
> * How do I get and set the row with the current focus (ie different
> from the current selections)?
You get the focus row with tree.focus_row... I don't know if you can set it.
> * How do I put pixmap into a row? An example would be really helpful.
See the enclosed example... BTW, does anybody know why I don't get
transparency with PNG files ?
Now my own questions on GtkCTree :
- why doesn't the select_row event work in the case of an
extended selection ? Is there a fallback ?
- is it possible to overload a drag'n'drop mechanism ? Currently, it
is possible to move items around in the CTree. I would like to move
them also out of the CTree, but as an other type. Is it feasible ?
Thanks a lot,
Fr�d�ric
from gtk import *
from GdkImlib import Image
# Create a pixmap
im = Image ("test.gif")
im.render ()
(pixmap, mask) = im.get_pixmap ()
win = GtkWindow ()
win.connect ('delete_event', mainquit)
# Create a tree
tree = GtkCTree (2, 0, ('A', 'B'))
win.add (tree)
# add a node in the tree
node = tree.insert_node (None, None,
['col A', 'col B'],
pixmap_closed = pixmap,
pixmap_opened = pixmap,
mask_closed = mask,
mask_opened = mask)
print tree.focus_row
tree.focus_row = 0
win.show_all ()
mainloop ()