from Source import Source
-from Tools.Event import Event
from Components.Element import cached
class List(Source, object):
def selectionChanged(self, index):
if self.disable_callbacks:
return
-
+
for x in self.onSelectionChanged:
x()
if self.master is not None:
return self.master.index
else:
- return -1
+ return None
setCurrentIndex = setIndex