Made RSDownloader translateable and added german translation
[enigma2-plugins.git] / rsdownloader / src / RSListBrowser.py
1 ##\r
2 ## RS Downloader\r
3 ## by AliAbdul\r
4 ##\r
5 from Components.ActionMap import ActionMap\r
6 from Components.FileList import FileList\r
7 from RSTranslation import TitleScreen\r
8 \r
9 ##############################################################################\r
10 \r
11 class RSListBrowser(TitleScreen):\r
12         skin = """\r
13                 <screen position="80,100" size="560,400" title="RS Downloader">\r
14                         <widget name="list" position="0,0" size="560,395" scrollbarMode="showOnDemand" />\r
15                 </screen>"""\r
16 \r
17         def __init__(self, session, path):\r
18                 TitleScreen.__init__(self, session)\r
19                 self["list"] = FileList(path, False, True, "^.*\.(txt)")\r
20                 self["actions"] = ActionMap(["OkCancelActions"], {"ok": self.okClicked, "cancel": self.close}, -1)\r
21 \r
22         def okClicked(self):\r
23                 pass #don't do anything... only a small browser to view the lists atm!\r