follow core event changes
[enigma2.git] / lib / python / Components / VariableText.py
index 694355e7fa7bd7d5c6099eebfe2941b494105c58..e2a755c539f57b561ab081810aefb1cf7d0fff8f 100644 (file)
@@ -1,3 +1,5 @@
+import skin
+
 class VariableText:
        """VariableText can be used for components which have a variable text, based on any widget with setText call"""
        
@@ -10,11 +12,15 @@ class VariableText:
                if self.instance:
                        self.instance.setText(self.message)
 
+       def setMarkedPos(self, pos):
+               if self.instance:
+                       self.instance.setMarkedPos(int(pos))
+
        def getText(self):
                return self.message
        
-       def GUIcreate(self, parent, skindata):
-               self.instance = self.createWidget(parent, skindata)
+       def GUIcreate(self, parent):
+               self.instance = self.createWidget(parent)
                self.instance.setText(self.message)
        
        def GUIdelete(self):