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)
 | 
			
		||||
grayColor = pygame.Color(196, 202, 206)
 | 
			
		||||
brownColor = pygame.Color(177, 86, 15)
 | 
			
		||||
mainFontColor = greenColor
 | 
			
		||||
mainFontColor = blackColor
 | 
			
		||||
 | 
			
		||||
#fonts
 | 
			
		||||
font1 = pygame.font.Font('freesansbold.ttf', 90)
 | 
			
		||||
@@ -190,10 +190,9 @@ def handle_events():
 | 
			
		||||
                #shutdown_raspberry()
 | 
			
		||||
        for event in pygame.event.get():
 | 
			
		||||
                if event.type == KEYDOWN and event.key == K_ESCAPE:
 | 
			
		||||
                        shutdown_raspberry()
 | 
			
		||||
                else:
 | 
			
		||||
                        if event.type == pygame.QUIT or event.type == KEYDOWN: 
 | 
			
		||||
                                exit_application()
 | 
			
		||||
                        exit_application()
 | 
			
		||||
                elif event.type == KEYDOWN and event.key == K_q: 
 | 
			
		||||
                        shutdown_raspberry()      
 | 
			
		||||
 | 
			
		||||
        time.sleep(0.1)
 | 
			
		||||
        return
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user