def METHOD_NAME(self):
    """
    Draw method for singleshot timer
    This draw method can be added to a singleshot timer, which can
    accumulate draws while the eventloop is spinning. This method will
    then only draw the first time and short-circuit the others.
    """
    with self._idle_draw_cntx():
        if not self._draw_pending:
            # Short-circuit because our draw request has already been
            # taken care of
            return
        self._draw_pending = False
        self.draw()