New config (Ignore download times: yes/no)
[enigma2-plugins.git] / rsdownloader / src / RSDownloadBrowser.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 RSDownloadBrowser(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)\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 downloaded files atm!\r