code: def set_refresh_rate(self, fps):
          
          self.rf_fps = fps
          self.rf_rate = 1.0 / self.rf_fps
          #self.set_redraw_lag(self.rf_rate)
          self.logger.info("set a refresh rate of %.2f fps" % (self.rf_fps))
docs: Set the refresh rate for redrawing the canvas at a timed interval.
  
          Parameters
          ----------
          fps : float
              Desired rate in frames per second.