def getCurrentIndex(self):
return self.instance.getCurrentIndex()
+ def getCurrentEvent(self):
+ l = self.l.getCurrentSelection()
+ return l and l[0] and l[1] and l[1].getEvent(l[0])
+
def getCurrent(self):
l = self.l.getCurrentSelection()
- return l or l[0]
+ return l and l[0]
- def GUIcreate(self, parent):
- self.instance = eListbox(parent)
- self.instance.setContent(self.l)
- self.instance.setItemHeight(75)
+ GUI_WIDGET = eListbox
+
+ def postWidgetCreate(self, instance):
+ instance.setContent(self.l)
+ instance.setItemHeight(75)
- def GUIdelete(self):
- self.instance.setContent(None)
- self.instance = None
-
def reload(self, root = None):
if root is not None:
self.load(root)