Ejemplo n.º 1
0
 def text_pressed(self):
     line = int(self.line_combo.currentText())
     position = int(self.pos_combo.currentText())
     text = unicode(self.text_edit.text().toUtf8(), 'utf-8')
     try:
         self.lcd.write_line(line, position, unicode_to_ks0066u(text))
     except ip_connection.Error:
         return
Ejemplo n.º 2
0
 def text_pressed(self):
     line = int(self.line_combo.currentText())
     position = int(self.pos_combo.currentText())
     text = unicode(self.text_edit.text().toUtf8(), 'utf-8')
     if self.version >= (2, 0, 1):
         for i in range(8):
             text = text.replace('\\' + str(i), chr(i+8))
     try:
         self.lcd.write_line(line, position, unicode_to_ks0066u(text)) 
     except ip_connection.Error:
         return