def redraw(self, old=None): if self.drawer is None: return if old is None: old = self.polys.keys() for i in old: self.drawer.poly(self.move(self.polys[i]), self.on_color) for i in [i for i in old if i not in self.llcd[self.value]]: self.drawer.poly(self.move(self.polys[i]), self.off_color) for i in [i for i in self.llcd[self.value] if i not in old]: self.drawer.poly(self.move(self.polys[i]), self.on_color)