def __tag_editing_started(self, render, editable, path, model, library): if not editable.get_completion(): tags = self.__songinfo.can_change() if tags is True: tags = USER_TAGS completion = qltk.EntryCompletion(tags) editable.set_completion(completion)
def __tag_editing_started(self, render, editable, path, model, library): try: if not editable.get_completion(): tags = self.__songinfo.can_change() if tags is True: from quodlibet.formats import USEFUL_TAGS as tags completion = qltk.EntryCompletion(tags) editable.set_completion(completion) except AttributeError: pass