mirror of
				https://github.com/panda3d/panda3d.git
				synced 2025-11-03 20:13:57 -05:00 
			
		
		
		
	interrupt key
This commit is contained in:
		
							parent
							
								
									907527a9c5
								
							
						
					
					
						commit
						1c043e705b
					
				@ -114,6 +114,13 @@ class TaskManager:
 | 
			
		||||
        self.mgr.setClock(clockObject)
 | 
			
		||||
        self.globalClock = clockObject
 | 
			
		||||
 | 
			
		||||
    def invokeDefaultHandler(self, signalNumber, stackFrame):
 | 
			
		||||
        print '*** allowing mid-frame keyboard interrupt.'
 | 
			
		||||
        # Restore default interrupt handler
 | 
			
		||||
        signal.signal(signal.SIGINT, signal.default_int_handler)
 | 
			
		||||
        # and invoke it
 | 
			
		||||
        raise KeyboardInterrupt
 | 
			
		||||
 | 
			
		||||
    def keyboardInterruptHandler(self, signalNumber, stackFrame):
 | 
			
		||||
        self.fKeyboardInterrupt = 1
 | 
			
		||||
        self.interruptCount += 1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user