X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f458abcfbe30c3e3062a41b88d3244147bdc0607..958251e457e49c86366beff69662d36f052d4cc7:/lib/python/Plugins/test/plugin.py diff --git a/lib/python/Plugins/test/plugin.py b/lib/python/Plugins/test/plugin.py index 0a375335..668515f4 100644 --- a/lib/python/Plugins/test/plugin.py +++ b/lib/python/Plugins/test/plugin.py @@ -5,6 +5,7 @@ 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 @@ -15,13 +16,15 @@ class Test(Screen): + """ def __init__(self, session, args = None): self.skin = Test.skin Screen.__init__(self, session) - self["list"] = FileList("/") - + self["list"] = FileList("/", matchingPattern = "^.*\.png") + self["pixmap"] = Pixmap() + #self["text"] = Input("1234", maxSize=True, type=Input.NUMBER) self["actions"] = NumberActionMap(["WizardActions", "InputActions"], @@ -52,6 +55,8 @@ class Test(Screen): selection = self["list"].getSelection() if selection[1] == True: # isDir self["list"].changeDir(selection[0]) + else: + self["pixmap"].instance.setPixmapFromFile(selection[0]) def keyNumberGlobal(self, number): print "pressed", number