menu/lcdmenu.py
def _cancel_backlight_timer(self):
        """Cancel and clear any backlight timer"""
        if self._backlight_timer:
            try:
                self._backlight_timer.cancel()
            except ValueError:
                # if the event has already run, we will receive this error
                # It is safe to ignore
                pass
            self._backlight_timer = None
Cancel and clear any backlight timer
Cancel and clear any backlight timer
Cancel and clear any backlight timer
def _cancel_backlight_timer(self):
        if self._backlight_timer:
            try:
                self._backlight_timer.cancel()
            except ValueError:
                pass
            self._backlight_timer = None
def _cancel_backlight_timer ( self ) : if self . _backlight_timer : try : self . _backlight_timer . cancel ( ) except ValueError : pass self . _backlight_timer = None
Cancel and clear any backlight timer
Cancel and clear any backlight timer
"""Cancel and clear any backlight timer""" # if the event has already run, we will receive this error # It is safe to ignore
self