I've looked at several posts regarding this and they've done the following
-The output i get is blank
-The output i get is the id, which is practically useless unless somebody can show me how to manipulate it
-No output at all
i just want to be able to click an item in treeview, and instantly be given the text i just clicked
def OnDoubleClick(event):
item = course1_assessments.focus()
print (item)
course1_assessments.bind("<<TreeviewSelect>>", OnDoubleClick)
This code gives me 'I001' if i click the first item, and 'I002' when i click the second; id assume these are column values in the tree, but still useless to me
You can get a list of the selected items with the
selection
method of the widget. It will return a list of item ids. You can use theitem
method to get information about each item.For example: