+import skin
+
class VariableText:
"""VariableText can be used for components which have a variable text, based on any widget with setText call"""
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):