menu/lcdmenu.py
def _set_update_time(self, menu_item, delay):
        """
        Set up a timer that will redraw the menu item in a short time
        But only do this if the backlight is on (i.e. the display is visible)
        :param menu_item: The menu item to draw
        """
        if self.lcd.is_backlight_on():
            def redraw():
                self._draw_text(menu_item)

            self._cancel_update_timer()
            self._update_timer = Timer(delay, redraw)
            self._update_timer.start()

        Set up a timer that will redraw the menu item in a short time
        But only do this if the backlight is on (i.e. the display is visible)
        :param menu_item: The menu item to draw
        
Set up a timer that will redraw the menu item in a short time
But only do this if the backlight is on
Set up a timer that will redraw the menu item in a short time But only do this if the backlight is on
def _set_update_time(self, menu_item, delay):
        if self.lcd.is_backlight_on():
            def redraw():
                self._draw_text(menu_item)
            self._cancel_update_timer()
            self._update_timer = Timer(delay, redraw)
            self._update_timer.start()
def _set_update_time ( self , menu_item , delay ) : if self . lcd . is_backlight_on ( ) : def redraw ( ) : self . _draw_text ( menu_item ) self . _cancel_update_timer ( ) self . _update_timer = Timer ( delay , redraw ) self . _update_timer . start ( )
Set up a timer that will redraw the menu item in a short time
But only do this if the backlight is on (i.e.
Set up a timer that will redraw the menu item in a short time But only do this if the backlight is on ( i . e .
"""
        Set up a timer that will redraw the menu item in a short time
        But only do this if the backlight is on (i.e. the display is visible)
        :param menu_item: The menu item to draw
        """
self
menu_item
The menu item to draw
The menu item to draw
delay