예제 #1
0
def navigate(move_amount, master, tab_control, skip_evaluated,
             skip_to_priority):
    start_time = time.time()
    #     try:
    #         vid_player_control.close_vid_if_open()
    #     except NameError:
    #         print('Cant close vid because cant import vid_player_pontrol')

    if skip_evaluated and not pool_clips_data_handler.non_eval_clips_exist():
        showinfo("Info", "All Clips Have Been Evaluated")
        return

    pool_clips_data_handler.write_to_current('priority_next', '')

    priority_row_num = False
    if skip_to_priority:
        priority_row_num = pool_clips_data_handler.get_next_priority_row_num()

    if priority_row_num != False:
        pool_clips_data_handler.move_current_to_row_num(priority_row_num)
    else:
        pool_clips_data_handler.move_current(move_amount)
        while (skip_evaluated
               and pool_clips_data_handler.read_from_current('status') != ''):
            pool_clips_data_handler.move_current(move_amount)
    restart_build_tab(master, tab_control, 0)

    try:
        vid_player_control.open_vid(
            pool_clips_data_handler.get_current_main_clip_path())
    except NameError:
        print('Cant open vid because cant import vid_player_pontrol')

    print('in gui utils, navigation total time: ', time.time() - start_time)
예제 #2
0
def get_current_clip_data():
    row_dl = pool_clips_data_handler.get_csv_row_dl()

    for row_d in row_dl:
        if row_d['current'] == '1':
            return Clip_Data.Clip_Data(row_d)
    # if none are marked current (only happens with new csv)
    pool_clips_data_handler.write_to_current('current', '1')
    get_current_clip_data()
예제 #3
0
def decline(master, tab_control, skip_evaluated, skip_to_priority):
    print('Clip declined!')
    pool_clips_data_handler.write_to_current('status', 'declined')
    next(master, tab_control, skip_evaluated, skip_to_priority)
예제 #4
0
def log(header, value):
    pool_clips_data_handler.write_to_current(header, value)