<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stop_video(self, tick):
 """Stop video if tick is more than the end, only for last file. Parameters tick : int time in ms from the beginning of the file useless? """

        if self.cnt_video == self.n_video:
            if tick >= self.end_diff:
                self.idx_button.setText('Start')
                self.video.stop()