elif event.key == pygame.K_ESCAPE:change it to this
pygame.quit()
sys.exit()
elif event.key == pygame.K_ESCAPE:
#pygame.quit()
#sys.exit()
- label: Exit to Console
visible: Yes
full_path: no
command: ""
override_menu: yes
elif event.key == pygame.K_ESCAPE:to:
elif event.key == K_KP_PLUS:to assign it to the 'keypad +' key.
elif event.type == pygame.JOYBUTTONDOWN:and change it to
if event.button == 0:
self.do_menu_item_action(self.get_selected_item())
if event.button == 1:
pygame.quit()
sys.exit()
elif event.type == pygame.JOYBUTTONDOWN:
if event.button == 0:
self.do_menu_item_action(self.get_selected_item())
if event.button == 1:
#pygame.quit()
#sys.exit()
It looks like you're new here. If you want to get involved, click one of these buttons!