def notifications(self, value): if not self.settings['notify']: return if not self.was_set(self.id['notifications']): self.id['notifications'] = id() self.value['notifications'] = value gui.IdleAdd(self.notifications_setter, tolist(value))
def context(self, value): value = tolist(value) if self.appletting: self.value['context-applet'] = value value += ['-'] else: time = timestamp(id() + self.interval) if self.updating: if self.success == None: self.value['context-time'] = ['Error while updating. Next try at '+time,'-'] else: self.value['context-time'] = ['Next update at '+time,'-'] elif self.initializing and self.success == None: self.value['context-time'] = ['Error while initializing. Next try at '+time,'-'] self.value['context-default'] = self.context_default() value += self.value['context-time'] + self.value['context-default'] gui.IdleAdd(self.context_setter, value)
def data(self, value): if not self.was_set(self.id['data']): value = tolist(value) self.id['data'] = id() self.value['data'] = value gui.IdleAdd(self.data_setter, value)