X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/59d2d0a7fc787e89897bda31759cc8fe34417535..9b70d2bcdc6ec3afd4f1666beb329aa649d7a25c:/lib/python/Plugins/Extensions/FileManager/plugin.py diff --git a/lib/python/Plugins/Extensions/FileManager/plugin.py b/lib/python/Plugins/Extensions/FileManager/plugin.py deleted file mode 100644 index 11f75a2b..00000000 --- a/lib/python/Plugins/Extensions/FileManager/plugin.py +++ /dev/null @@ -1,69 +0,0 @@ -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 Plugins.Plugin import PluginDescriptor - -import os - -class FileManager(Screen): - skin = """ - - - - - """ - def __init__(self, session, args = None): - self.skin = FileManager.skin - Screen.__init__(self, session) - - self["list"] = FileList("/", matchingPattern = "^.*\.(png|avi|mp3|mpeg|ts)", useServiceRef = True) - self["pixmap"] = Pixmap() - - #self["text"] = Input("1234", maxSize=True, type=Input.NUMBER) - - self["actions"] = NumberActionMap(["WizardActions", "InputActions"], - { - "ok": self.ok, - "back": self.close, -# "left": self.keyLeft, -# "right": self.keyRight, - "1": self.keyNumberGlobal, - "2": self.keyNumberGlobal, - "3": self.keyNumberGlobal, - "4": self.keyNumberGlobal, - "5": self.keyNumberGlobal, - "6": self.keyNumberGlobal, - "7": self.keyNumberGlobal, - "8": self.keyNumberGlobal, - "9": self.keyNumberGlobal, - "0": self.keyNumberGlobal - }, -1) - - def keyLeft(self): - self["text"].left() - - def keyRight(self): - self["text"].right() - - def ok(self): - - if self["list"].canDescent(): # isDir - self["list"].descent() - else: - self["pixmap"].instance.setPixmapFromFile(self["list"].getFilename()) - - def keyNumberGlobal(self, number): - print "pressed", number - self["text"].number(number) - -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)