aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-02-16 11:46:47 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-02-16 11:46:47 +0000
commit34a5ded4041287c0818ac1d1781ecf3bf84abee6 (patch)
treebc29017873944d456bc24caa83692de810020776 /lib/python
parent0a826ed1dc53b57babc1ddeec7aa4d3a2cf22bfc (diff)
downloadenigma2-34a5ded4041287c0818ac1d1781ecf3bf84abee6.tar.gz
enigma2-34a5ded4041287c0818ac1d1781ecf3bf84abee6.zip
sample plugin fix
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Plugins/example.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/python/Plugins/example.py b/lib/python/Plugins/example.py
index f2011912..e69de29b 100644
--- a/lib/python/Plugins/example.py
+++ b/lib/python/Plugins/example.py
@@ -1,37 +0,0 @@
-from enigma import *
-from Screens.Screen import Screen
-from Screens.MessageBox import MessageBox
-
-from Components.ActionMap import ActionMap
-from Components.Label import Label
-
-class Example(Screen):
- skin = """
- <screen position="100,100" size="200,200" title="Example plugin..." >
- <widget name="text" position="0,0" size="100,50" font="Regular;23" />
- </screen>"""
-
- def __init__(self, session):
- self.skin = Example.skin
- Screen.__init__(self, session)
-
- self["text"] = Label("Big test")
-
- self["actions"] = ActionMap(["WizardActions"],
- {
- "ok": self.ok,
- "back": self.close
- }, -1)
-
- def ok(self):
- self.session.open(MessageBox, "Bla bla bla bla bla bla bla bla\n bla bla bla bla bla bla\n bla bla bla bla bla bla\n bla bla bla bla bla", MessageBox.TYPE_YESNO)
-
-def main(session):
- session.open(Example)
-
-
-def getPicturePath():
- return "/usr/share/enigma2/record.png"
-
-def getPluginName():
- return "Fancy example-plugin" \ No newline at end of file