def display(self): global lcd topStart = self.position topEnd = topStart + 16 top = cleanString(self.text[topStart:topEnd]) fullArt = "~~~~~~~~~~~~~~~~" bottom = " " if self.playPos < 0: bottom = fullArt else: bottom = bottom[:self.playAnimPos] + fullArt[self.playAnimPos] + bottom[self.playAnimPos+1:] bottom = bottom[:self.playPos] + ">" + bottom[self.playPos+1:] fmtText = top + "\n" + bottom lcd.clear() lcd.message(fmtText)
def display(self): global lcd topStart = self.position topEnd = topStart + 16 top = cleanString(self.text[topStart:topEnd]) fullArt = "~~~~~~~~~~~~~~~~" bottom = " " if self.playPos < 0: bottom = fullArt else: bottom = bottom[:self.playAnimPos] + fullArt[ self.playAnimPos] + bottom[self.playAnimPos + 1:] bottom = bottom[:self.playPos] + ">" + bottom[self.playPos + 1:] fmtText = top + "\n" + bottom lcd.clear() lcd.message(fmtText)
def display(text): fmtText = cleanString(text[:16] + "\n" + text[16:]) lcd.clear() lcd.message(fmtText)