def copy_to_clipboard(self): to_clipboard("".join(self.__storage))
fix_int(stripped_time[0:2]), fix_int(stripped_time[3:5]), fix_int(stripped_time[6:9]) ]) elif re.fullmatch('(\d\d:){2}\d\d\.\d\d\d', stripped_time): fixed_time = ','.join([ fix_int(stripped_time[0:2]), fix_int(stripped_time[3:5]), fix_int(stripped_time[6:8]), fix_int(stripped_time[9:12]) ]) else: print(f'\n\n{stripped_time}\n\n') raise RuntimeError('Time could not be fixed.') # paste directly into tweet_screencap.py return f'''sec = time_to_seconds({fixed_time}) elif sec == time_to_seconds({fixed_time}): ''' if __name__ == '__main__': while True: w = input('h?') found_time = find_time() print(found_time) time = fix_time(found_time) to_clipboard(time)
def _copy_to_clipboard(self, inputs_as_list): """Copies content of display label to clipboard.""" to_clipboard("".join(inputs_as_list))
def _copy_to_clipboard(self, inputs_as_list): to_clipboard("".join(inputs_as_list))