def METHOD_NAME(self):
    self.progress_slider.setValue(self.slider_frame_num)
    self.slider_frame_num = self.progress_slider.value()
    self.frame = self.all_frames[self.slider_frame_num]
    frame = self.frame
    height, width, bytes_per_component = frame.shape
    bytes_per_line = bytes_per_component * width
    q_image = QImage(frame.data, width, height, bytes_per_line,
                     QImage.Format_RGB888).scaled(self.picturelabel.width(), self.picturelabel.height())
    self.picturelabel.setPixmap(QPixmap.fromImage(q_image))
    self.slider_frame_num = self.slider_frame_num + 1
    self.time_label.setText('{}/{}'.format(self.slider_frame_num, self.cap.get(7)))
    if self.progress_slider.value() == self.cap.get(7) - 1:
        self.slot_stop()