mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	[3.13] gh-128014: Fix passing default='' to the tkinter method wm_iconbitmap() (GH-128015) (GH-128418)
(cherry picked from commit 58e9f95c4a)
Co-authored-by: Zhikang Yan <2951256653@qq.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
			
			
This commit is contained in:
		
							parent
							
								
									cc5b03f89d
								
							
						
					
					
						commit
						24cddab4a2
					
				
					 3 changed files with 30 additions and 2 deletions
				
			
		|  | @ -2263,7 +2263,7 @@ def wm_iconbitmap(self, bitmap=None, default=None): | |||
|         explicitly.  DEFAULT can be the relative path to a .ico file | ||||
|         (example: root.iconbitmap(default='myicon.ico') ).  See Tk | ||||
|         documentation for more information.""" | ||||
|         if default: | ||||
|         if default is not None: | ||||
|             return self.tk.call('wm', 'iconbitmap', self._w, '-default', default) | ||||
|         else: | ||||
|             return self.tk.call('wm', 'iconbitmap', self._w, bitmap) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Miss Islington (bot)
						Miss Islington (bot)