1 class VariableText(object):
2 """VariableText can be used for components which have a variable text, based on any widget with setText call"""
9 def setText(self, text):
12 self.instance.setText(self.message or "")
14 def setMarkedPos(self, pos):
16 self.instance.setMarkedPos(int(pos))
21 text = property(getText, setText)
23 def postWidgetCreate(self, instance):
24 instance.setText(self.message or "")