def setMatchingIter(self, model, path, iter, argumentString): # Hardcode 0, seems to work for the most part... # but when not we will try 1 column = 0 if model.get_column_type(0) is str else 1 if removeMarkup(model.get_value(iter, column)) == argumentString: self.changeMethod(iter) return True
def getStateDescription(self, *args): # Hardcode 0, seems to work for the most part... # but when not we will try 1 model = self.widget.get_model() column = 0 if model.get_column_type(0) is str else 1 iter = self.widget.get_active_iter() if iter is not None: return removeMarkup(model.get_value(iter, column)) else: return ""
def getValue(self, *args): value = self.extractor.getValue(*args) return removeMarkup(str(value))