menu/lcdmenu.py
def _draw_text(self, menu_item):
        """Obtain the text for the menu item and draw it on the display,
        setting up a timer to redraw the item in a periodic fashion"""

        title = menu_item[TITLE](self)
        description = menu_item[DESCRIPTION](self)

        # Format them
        pre = "" if self.is_root_menu() else self.lcd.UP
        post = ""
        if menu_item[PREV] and \
                menu_item[NEXT] and \
                menu_item[PREV][ID] != menu_item[NEXT][ID]:
            post += self.lcd.LEFT_RIGHT
        if menu_item[ACTION]:
            post += self.lcd.EXEC

        self.lcd.set_line(0, self._format(title, pre, post))
        self.lcd.set_line(1, self._format(description, just=1))
        self.lcd.flush()
        delay = 1.0 / menu_item[REFRESH_RATE]
        self._set_update_time(menu_item, delay)
Obtain the text for the menu item and draw it on the display,
        setting up a timer to redraw the item in a periodic fashion
Obtain the text for the menu item and draw it on the display,
setting up a timer to redraw the item in a periodic fashion
Obtain the text for the menu item and draw it on the display setting up a timer to redraw the item in a periodic fashion
def _draw_text(self, menu_item):
        title = menu_item[TITLE](self)
        description = menu_item[DESCRIPTION](self)
        pre = "" if self.is_root_menu() else self.lcd.UP
        post = ""
        if menu_item[PREV] and \
                menu_item[NEXT] and \
                menu_item[PREV][ID] != menu_item[NEXT][ID]:
            post += self.lcd.LEFT_RIGHT
        if menu_item[ACTION]:
            post += self.lcd.EXEC
        self.lcd.set_line(0, self._format(title, pre, post))
        self.lcd.set_line(1, self._format(description, just=1))
        self.lcd.flush()
        delay = 1.0 / menu_item[REFRESH_RATE]
        self._set_update_time(menu_item, delay)
def _draw_text ( self , menu_item ) : title = menu_item [ TITLE ] ( self ) description = menu_item [ DESCRIPTION ] ( self ) pre = "" if self . is_root_menu ( ) else self . lcd . UP post = "" if menu_item [ PREV ] and menu_item [ NEXT ] and menu_item [ PREV ] [ ID ] != menu_item [ NEXT ] [ ID ] : post += self . lcd . LEFT_RIGHT if menu_item [ ACTION ] : post += self . lcd . EXEC self . lcd . set_line ( 0 , self . _format ( title , pre , post ) ) self . lcd . set_line ( 1 , self . _format ( description , just = 1 ) ) self . lcd . flush ( ) delay = 1.0 / menu_item [ REFRESH_RATE ] self . _set_update_time ( menu_item , delay )
Obtain the text for the menu item and draw it on the display,
setting up a timer to redraw the item in a periodic fashion
Obtain the text for the menu item and draw it on the display setting up a timer to redraw the item in a periodic fashion
"""Obtain the text for the menu item and draw it on the display,
        setting up a timer to redraw the item in a periodic fashion""" # Format them
self
menu_item