menu/lcdmenu.py
def flush(self):
        """Flush all changes to the buffer to the LCD"""
        for i in range(len(self._buffer)):
            if self._buffer[i] != self._written[i]:
                diffs = self._diff(self._buffer[i], self._written[i])
                for start, end in diffs:
                    self._lcd.cursor_pos = (i, start)
                    self._lcd.write_string(self._buffer[i][start:end])
                self._written[i] = self._buffer[i]

        if not self.is_real():
            self._lcd.cursor_pos = (3, 0)
            self._lcd.write_string("Command? ")
Flush all changes to the buffer to the LCD
Flush all changes to the buffer to the LCD
Flush all changes to the buffer to the LCD
def flush(self):
        for i in range(len(self._buffer)):
            if self._buffer[i] != self._written[i]:
                diffs = self._diff(self._buffer[i], self._written[i])
                for start, end in diffs:
                    self._lcd.cursor_pos = (i, start)
                    self._lcd.write_string(self._buffer[i][start:end])
                self._written[i] = self._buffer[i]
        if not self.is_real():
            self._lcd.cursor_pos = (3, 0)
            self._lcd.write_string("Command? ")
def flush ( self ) : for i in range ( len ( self . _buffer ) ) : if self . _buffer [ i ] != self . _written [ i ] : diffs = self . _diff ( self . _buffer [ i ] , self . _written [ i ] ) for start , end in diffs : self . _lcd . cursor_pos = ( i , start ) self . _lcd . write_string ( self . _buffer [ i ] [ start : end ] ) self . _written [ i ] = self . _buffer [ i ] if not self . is_real ( ) : self . _lcd . cursor_pos = ( 3 , 0 ) self . _lcd . write_string ( "Command? " )
Flush all changes to the buffer to the LCD
Flush all changes to the buffer to the LCD
"""Flush all changes to the buffer to the LCD"""
self