What does "stuck" mean?
CRUMember is created in the function AddRecord. This means it is local to the function, and is garbage collected when the function exits, unless it is returned. You can use partial to pass an existing (not created in a function) list to the AddRecord function, and since lists are mutable, the changes made will exist outside the function. When you have time, read the Python Style Guide; functions are lower case with underlines, add_record, It makes code posted easier to understand. https://www.python.org/dev/peps/pep-0008/
Quote:I would like then the data to be displayed in a treeview, each item of the list in its own column, and that's where I'm stuck.
CRUMember is created in the function AddRecord. This means it is local to the function, and is garbage collected when the function exits, unless it is returned. You can use partial to pass an existing (not created in a function) list to the AddRecord function, and since lists are mutable, the changes made will exist outside the function. When you have time, read the Python Style Guide; functions are lower case with underlines, add_record, It makes code posted easier to understand. https://www.python.org/dev/peps/pep-0008/