mouse_key = pygame.mouse.get_pressed() if cnt == minutes: time = Generate.real_time() current_time = int(time[11:][:2])*minutes+int(time[11:][3:]) for s in flights: if s[4] <= current_time <= s[5]: if s in active: continue active.append(s) else: if s in active: active.remove(s) cnt = 0 cnt += 1 # draw big_board = Generate.big_board(current_time) print_time = font1.render(time, True, white) window.blit(print_time, (time_loc1, time_loc2)) back_size = back.get_rect().size scaled = pygame.transform.smoothscale(back, (int(back_size[0] * scale), int(back_size[1] * scale))) map_surface.blit(scaled, (int(trans_x), int(trans_y))) window.blit(logo, (logo_loc1, logo_loc2)) window.blit(flight_tracker, (name_loc1, name_loc2)) window.blit(first_search, (sea1_loc1, sea1_loc2)) window.blit(second_search, (sea2_loc1, sea2_loc2)) window.blit(plus, (zoom1_loc1, zoom1_loc2)) window.blit(minus, (zoom2_loc1, zoom2_loc2)) if left_box: departure = font2.render("DEPARTURE", True, black) arrival = font2.render("ARRIVAL", True, white) else: