def append_button_pressed(): track = current_sequence().get_first_active_track() if editevent.track_lock_check_and_user_info(track, append_button_pressed, "insert"): return tline_pos = track.get_length() new_clip = _get_new_clip_from_clip_monitor() if new_clip == None: no_monitor_clip_info(gui.editor_window.window) return updater.save_monitor_frame = False # hack to not get wrong value saved in MediaFile.current_frame editevent.do_clip_insert(track, new_clip, tline_pos)