[pygtk] TreeSelection.select_iter() wierdness

Lee Daniel Crocker lee at onejoker.com
Mon Oct 12 05:57:39 WST 2009


I have a TreeView that the user will generally browse with the up/down 
arrows, and I have its selection mode set to gtk.SELECTION_BROWSE, since 
I only want single selections and I don't want to require clicking on an 
item.  But when I use select_iter() to change the current selection, the 
colored bar moves, but the previous selection is "remembered" somehow 
(perhaps something to do with keyboard focus?), so that when the user 
uses the up/down keys again, the bar jumps back to the previous 
selection before moving.



More information about the pygtk mailing list