def _change_clip_length_dialog_callback(dialog, response_id, clip, track, length_changer): if response_id != Gtk.ResponseType.ACCEPT: dialog.destroy() return length = length_changer.get_length() index = track.clips.index(clip) dialog.destroy() data = {"track": track, "clip": clip, "index": index, "length": length} action = edit.set_clip_length_action(data) action.do_edit()
def _change_clip_length_dialog_callback(dialog, response_id, clip, track, length_changer): if response_id != Gtk.ResponseType.ACCEPT: dialog.destroy() return length = length_changer.get_length() index = track.clips.index(clip) dialog.destroy() data = {"track":track, "clip":clip, "index":index, "length":length} action = edit.set_clip_length_action(data) action.do_edit()