initial commit of my widget system. it is quite alpha, so please dont relay on the...
[enigma2-plugins.git] / widgets / src / widgets / testwidget / widget.py
1 from Plugins.Extensions.Widgets.Widget import Widget
2 from Components.Label import Label
3
4
5 class TestWidget(Widget):
6     def __init__(self,session):
7         Widget.__init__(self,session,name="Static Text Widget",description="Example of a simple Widget with static text",version="0.1",author="3c5x9",homepage="cvs://schwerkraft")
8         self.elements["testwidget_title"] = Label("ich bin ein test widget")
9         self.elements["testwidget_blablub"] = Label("bla bla blub")
10        
11     def onLoadFinished(self,instance):
12         print "refresh TestWidget"
13         
14 def get_widget(session):
15     return TestWidget(session)