- self.setText(self.text)
- #self.setText(self.text[0:self.currPos] + "_" + self.text[self.currPos] + "_" + self.text[self.currPos + 1:])
+ if self.type == self.PIN:
+ self.message = "*" * len(self.Text)
+ else:
+ self.message = convertDVBUTF8(self.Text, 0)
+ if self.instance:
+ self.instance.setText(self.message)
+
+ def setText(self, text):
+ if not len(text):
+ self.currPos = 0
+ self.Text = ""
+ elif isUTF8(text):
+ self.Text = convertUTF8DVB(text, 0)
+ else:
+ self.Text = text
+ self.update()
+
+ def getText(self):
+ return convertDVBUTF8(self.Text, 0)