Is there a way to write the following function so that my IDE doesn\'t complain that column is an unused variable?
def get_selected_index(self):
If you don't care about the second item, why not just extract the first one:
def get_selected_index(self): path = self._treeView.get_cursor()[0] return path[0]