git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add getSelectionIndex
[enigma2.git]
/
lib
/
python
/
Components
/
FileList.py
diff --git
a/lib/python/Components/FileList.py
b/lib/python/Components/FileList.py
index b85b8ea337548a79dbb054245113e90e06c693c5..3091436fda0aa21d2cf4812a5b61e92f7820cc38 100644
(file)
--- a/
lib/python/Components/FileList.py
+++ b/
lib/python/Components/FileList.py
@@
-58,12
+58,16
@@
class FileList(MenuList, HTMLComponent, GUIComponent):
self.changeDir(directory)
self.l.setFont(0, gFont("Regular", 18))
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 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
def getFileList(self):
return self.list
@@
-186,4
+190,3
@@
class FileList(MenuList, HTMLComponent, GUIComponent):
def postWidgetCreate(self, instance):
instance.setContent(self.l)
def postWidgetCreate(self, instance):
instance.setContent(self.l)
- instance.setItemHeight(23)