mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Added Application.cleanup method which asks all windows to close
themselves and returns true if they did.
This commit is contained in:
		
							parent
							
								
									81aa0e2888
								
							
						
					
					
						commit
						c75e1d052b
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -115,6 +115,11 @@ def makeusermenus(self): | |||
| 	def _quit(self, *args): | ||||
| 		self.quitting = 1 | ||||
| 		 | ||||
| 	def cleanup(self): | ||||
| 		for w in self._windows.values(): | ||||
| 			w.do_close() | ||||
| 		return self._windows == {} | ||||
| 		 | ||||
| 	def appendwindow(self, wid, window): | ||||
| 		self._windows[wid] = window | ||||
| 		 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen