<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_redraw_lag(self, lag_sec):
 """Set lag time for redrawing the canvas. Parameters lag_sec : float Number of seconds to wait. """

        self.defer_redraw = (lag_sec > 0.0)
        if self.defer_redraw:
            self.defer_lagtime = lag_sec