def METHOD_NAME(self, cfg):
    self._scene_duration = cfg["duration"]
    self._framerate = Fraction(*cfg["framerate"])
    self._slider.setRange(0, self._scene_duration * self.SLIDER_TIMEBASE)
    self._adjust_time_label_size()
    self._refresh()