mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Patch #815924: Restore ability to pass type= and icon=
This commit is contained in:
		
							parent
							
								
									3798da0f92
								
							
						
					
					
						commit
						6fb20aa92c
					
				
					 2 changed files with 7 additions and 3 deletions
				
			
		| 
						 | 
					@ -63,9 +63,10 @@ class Message(Dialog):
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# convenience stuff
 | 
					# convenience stuff
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def _show(title=None, message=None, icon=None, type=None, **options):
 | 
					# Rename _icon and _type options to allow overriding them in options
 | 
				
			||||||
    if icon:    options["icon"] = icon
 | 
					def _show(title=None, message=None, _icon=None, _type=None, **options):
 | 
				
			||||||
    if type:    options["type"] = type
 | 
					    if _icon and "icon" not in options:    options["icon"] = _icon
 | 
				
			||||||
 | 
					    if _type and "type" not in options:    options["type"] = _type
 | 
				
			||||||
    if title:   options["title"] = title
 | 
					    if title:   options["title"] = title
 | 
				
			||||||
    if message: options["message"] = message
 | 
					    if message: options["message"] = message
 | 
				
			||||||
    res = Message(**options).show()
 | 
					    res = Message(**options).show()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -163,6 +163,9 @@ Extension Modules
 | 
				
			||||||
Library
 | 
					Library
 | 
				
			||||||
-------
 | 
					-------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- Patch #815924: Restore ability to pass type= and icon= in tkMessageBox
 | 
				
			||||||
 | 
					  functions.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Patch #812986: Update turtle output even if not tracing.
 | 
					- Patch #812986: Update turtle output even if not tracing.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- Patch #1494750: Destroy master after deleting children in 
 | 
					- Patch #1494750: Destroy master after deleting children in 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue