def center_tline_to_current_frame(): """ Sets scroll widget adjustment to place current frame in the middle of display. """ pos = tlinewidgets.get_pos_for_tline_centered_to_current_frame() gui.tline_scroll.get_adjustment().set_value( (float(pos) / float(current_sequence().get_length())) * 100.0)
def center_tline_to_current_frame(): """ Sets scroll widget adjustment to place current frame in the middle of display. """ pos = tlinewidgets.get_pos_for_tline_centered_to_current_frame() gui.tline_scroll.get_adjustment().set_value((float(pos) / float(current_sequence().get_length())) * 100.0)