def setText(self, text):
self.message = text
if self.instance:
- self.instance.setText(self.message)
+ self.instance.setText(self.message or "")
def setMarkedPos(self, pos):
if self.instance:
text = property(getText, setText)
def postWidgetCreate(self, instance):
- instance.setText(self.message)
+ instance.setText(self.message or "")