typos
[enigma2.git] / lib / python / Plugins / Extensions / FileManager / plugin.py
index e9dccbd6309d7883639924b3f81a912a599f3e76..12389813f35f14c09523fbadc895a227d4d5ec24 100644 (file)
@@ -1,16 +1,9 @@
-from enigma import *
 from Screens.Screen import Screen
-from Screens.MessageBox import MessageBox
 from Components.ActionMap import NumberActionMap
-from Components.Label import Label
-from Components.Input import Input
-from Components.GUIComponent import *
 from Components.Pixmap import Pixmap
-from Components.FileList import FileEntryComponent, FileList
+from Components.FileList import FileList
 from Plugins.Plugin import PluginDescriptor
 
-import os
-
 class FileManager(Screen):
        skin = """
                <screen position="100,100" size="550,400" title="Test" >
@@ -52,11 +45,11 @@ class FileManager(Screen):
                self["text"].right()
        
        def ok(self):
-               
+       
                if self["list"].canDescent(): # isDir
                        self["list"].descent()
                else:
-                       self["pixmap"].instance.setPixmapFromFile(self["list"].getSelection())
+                       self["pixmap"].instance.setPixmapFromFile(self["list"].getFilename())
        
        def keyNumberGlobal(self, number):
                print "pressed", number
@@ -66,4 +59,5 @@ def main(session, **kwargs):
        session.open(FileManager)
 
 def Plugins(**kwargs):
-       return PluginDescriptor(name="File-Manager", description="Let's you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)
+       return [PluginDescriptor(name="File-Manager", description="Lets you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main),
+                       PluginDescriptor(name="File-Manager", description="Lets you view/edit files in your Dreambox", where = PluginDescriptor.WHERE_EXTENSIONSMENU, fnc=main)]