+ def selectionChanged(self):
+ for x in self.onSelectionChanged:
+ x()
+
+ def postWidgetCreate(self, instance):
+ instance.setContent(self.l)
+ instance.selectionChanged.get().append(self.selectionChanged)
+
+ def preWidgetRemove(self, instance):
+ instance.selectionChanged.get().remove(self.selectionChanged)
+
+ def setList(self, list):
+ self.__list = list
+ self.l.setList(self.__list)
+
+ def getList(self):
+ return self.__list