rotor turning with measure input power is now working
[enigma2.git] / lib / python / Components / VariableText.py
1 class VariableText:
2         """VariableText can be used for components which have a variable text, based on any widget with setText call"""
3         
4         def __init__(self):
5                 self.message = ""
6                 self.instance = None
7         
8         def setText(self, text):
9                 self.message = text
10                 if self.instance:
11                         self.instance.setText(self.message)
12
13         def getText(self):
14                 return self.message
15         
16         def GUIcreate(self, parent, skindata):
17                 self.instance = self.createWidget(parent, skindata)
18                 self.instance.setText(self.message)
19         
20         def GUIdelete(self):
21                 self.removeWidget(self.instance)
22                 self.instance = None
23         
24         def removeWidget(self, instance):
25                 pass
26