add getSelectionIndex
[enigma2.git] / lib / python / Components / FileList.py
index b85b8ea337548a79dbb054245113e90e06c693c5..3091436fda0aa21d2cf4812a5b61e92f7820cc38 100644 (file)
@@ -58,12 +58,16 @@ class FileList(MenuList, HTMLComponent, GUIComponent):
                self.changeDir(directory)
 
                self.l.setFont(0, gFont("Regular", 18))
-               
+               self.l.setItemHeight(23)
+
        def getSelection(self):
                if self.l.getCurrentSelection() is None:
                        return None
                return self.l.getCurrentSelection()[0]
        
+       def getSelectionIndex(self):
+               return self.l.getCurrentSelectionIndex()
+
        def getFileList(self):
                return self.list
        
@@ -186,4 +190,3 @@ class FileList(MenuList, HTMLComponent, GUIComponent):
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-               instance.setItemHeight(23)