class LayoutProperty: __key = None get_value = lambda : None def __init__(self, path, key, default, get_value=None): self.__key = key self.get_value = get_value self.conf = GConfProperty(path, key, default) def is_changed(self): val_conf = self.conf.get() val_curr = self.get_value() return val_conf != val_curr def save(self): self.conf.set(self.get_value())
def __init__(self, path, key, default, get_value=None): self.__key = key self.get_value = get_value self.conf = GConfProperty(path, key, default)