Python Forum

Full Version: Can I modify part of 'Values' value of Treeview item?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
test_treeview.insert('', 'end', iid = 'i001', value = ['column-1', 'column-2', 'column-3'])
test_treeview.item('i001')['values']
Output:
['column-1', 'column-2', 'column-3']
test_treeview.item('i001', values = ['changed-column-1', 'changed-column-2', 'column-3'])
test_treeview.item('i001')['values']
Output:
['changed-column-1', 'changed-column-2', 'column-3']
I want to modify part of value only via specific INDEX, like:
values[0 : 2] = ['changed-column-1', 'changed-column-2']
how to do that?
Thanks.