I have two TreeViews: trvProducts and trvElements. When I select a row in trvProducts (connected to cursor_changed) I load different rows into trvElements.Ok, I found a hack to fix this. Do something like this before changing the model (it will force the CellRenderer to finish editing):
Everything is ok unless I add editable CellRenderers. When I click on trvProducts (changing the selected row) while editing a cell the 'cursor_changed' callback occures earlier than 'edited' form the CellRenderer and the 'edited' handler modifies the new TreeModel (but is passed parameters (path, etc...) referring to the old one).
Something is wrong here.
path, col = trv.get_cursor ()
if path:
trv.set_cursor (path, col)trv is the TreeView
-- regards, Jakub Piotr CÅapa _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
