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):
In Python the _ is often used as an ignored placeholder.
_
(path, _) = self._treeView.get_cursor()
You could also avoid unpacking as a tuple is indexable.
def get_selected_index(self): return self._treeView.get_cursor()[0][0]