changed default behaviour of escape to be exit_application, not shutdown. shutdown is now q
This commit is contained in:
		@@ -36,7 +36,7 @@ whiteColor = pygame.Color(255, 255, 255)
 | 
				
			|||||||
yellowColor = pygame.Color(255, 215, 0)
 | 
					yellowColor = pygame.Color(255, 215, 0)
 | 
				
			||||||
grayColor = pygame.Color(196, 202, 206)
 | 
					grayColor = pygame.Color(196, 202, 206)
 | 
				
			||||||
brownColor = pygame.Color(177, 86, 15)
 | 
					brownColor = pygame.Color(177, 86, 15)
 | 
				
			||||||
mainFontColor = greenColor
 | 
					mainFontColor = blackColor
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#fonts
 | 
					#fonts
 | 
				
			||||||
font1 = pygame.font.Font('freesansbold.ttf', 90)
 | 
					font1 = pygame.font.Font('freesansbold.ttf', 90)
 | 
				
			||||||
@@ -190,10 +190,9 @@ def handle_events():
 | 
				
			|||||||
                #shutdown_raspberry()
 | 
					                #shutdown_raspberry()
 | 
				
			||||||
        for event in pygame.event.get():
 | 
					        for event in pygame.event.get():
 | 
				
			||||||
                if event.type == KEYDOWN and event.key == K_ESCAPE:
 | 
					                if event.type == KEYDOWN and event.key == K_ESCAPE:
 | 
				
			||||||
                        shutdown_raspberry()
 | 
					                        exit_application()
 | 
				
			||||||
                else:
 | 
					                elif event.type == KEYDOWN and event.key == K_q: 
 | 
				
			||||||
                        if event.type == pygame.QUIT or event.type == KEYDOWN: 
 | 
					                        shutdown_raspberry()      
 | 
				
			||||||
                                exit_application()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        time.sleep(0.1)
 | 
					        time.sleep(0.1)
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user