IndexError list index out of range self.current_tab = 0 ; len(self.tabs) = 4 ; chosen_one = 4 ; len(self.tabs[self.current_tab].timeline) = 0