def text_clicked(self): line = int(self.line_combo.currentText()) position = int(self.pos_combo.currentText()) text = self.text_edit.text() if self.has_custom_character: for i in range(8): text = text.replace('\\' + str(i), chr(i + 8)) async_call(self.lcd.write_line, (line, position, unicode_to_ks0066u(text)), None, self.increase_error_count)
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
def text_clicked(self): line = int(self.line_combo.currentText()) position = int(self.pos_combo.currentText()) text = self.text_edit.text() if self.firmware_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
def text_clicked(self): line = int(self.line_combo.currentText()) position = int(self.pos_combo.currentText()) text = self.text_edit.text() if self.firmware_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