submit_button.draw() draw_button.draw() else: submit_button.draw() skip_button.draw() for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() exit() if event.type == pygame.MOUSEBUTTONUP: if game_status['turn'] == username and (game_status['drawed'] or game_status['error']): if game_status['drawed']: if yes_button.check_clicked(): send = 'yes' cards.reset_size() if 'free_wild' in drawed.name: select_color = 1 elif 'draw-four_wild' in drawed.name: select_color = 2 game_status['drawed'] = None message.put(send) elif no_button.check_clicked(): send = 'no' cards.reset_size() message.put(send) if game_status['error']: if oke_button.check_clicked(): pass elif select_color != 0: if yellow.check_clicked():