I'm trying to write an app where a user can add a new node in a 
GtkTreeStore/View and then immediately jump to edit it.  The node gets added 
correctly and the new node becomes the selected node, but it doesn't jump 
into edit mode.

My code looks something like this:
        iter = self.storeContactFolders.append( parentIter)
        self.storeContactFolders.set_value( iter, self.LABEL_COLUMN, label)
        self.storeContactFolders.set_value( iter, self.ID_COLUMN, id)
        self.storeContactFolders.set_value( iter, self.PARENT_COLUMN, parentID)
        treepathNew = modelContactFolders.get_path( iter)
        self.viewContactFolders.set_cursor( treepathNew,
                self.viewContactFolders.get_column( self.LABEL_COLUMN), 
                gtk.TRUE)
        self.viewContactFolders.grab_focus()                    

Any clues what might be wrong?

TIA,

Eric

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to