mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Issue #14018: Update the OS X IDLE Tcl/Tk warning check to include
the Apple-supplied Tck/Tk versions shipped with OS X 10.7 and 10.8. They are not as buggy as the 10.6 version but can still easily crash.
This commit is contained in:
		
							parent
							
								
									8f328d0c1d
								
							
						
					
					
						commit
						c556c64405
					
				
					 2 changed files with 14 additions and 6 deletions
				
			
		|  | @ -18,6 +18,10 @@ What's New in IDLE 3.2.4? | ||||||
| - Issue #14937: Perform auto-completion of filenames in strings even for | - Issue #14937: Perform auto-completion of filenames in strings even for | ||||||
|   non-ASCII filenames. Likewise for identifiers. |   non-ASCII filenames. Likewise for identifiers. | ||||||
| 
 | 
 | ||||||
|  | - Issue #14018: Update checks for unstable system Tcl/Tk versions on OS X | ||||||
|  |   to include versions shipped with OS X 10.7 and 10.8 in addition to 10.6. | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| What's New in IDLE 3.2.3? | What's New in IDLE 3.2.3? | ||||||
| ========================= | ========================= | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -37,17 +37,21 @@ def isCarbonAquaTk(root): | ||||||
| def tkVersionWarning(root): | def tkVersionWarning(root): | ||||||
|     """ |     """ | ||||||
|     Returns a string warning message if the Tk version in use appears to |     Returns a string warning message if the Tk version in use appears to | ||||||
|     be one known to cause problems with IDLE.  The Apple Cocoa-based Tk 8.5 |     be one known to cause problems with IDLE. | ||||||
|     that was shipped with Mac OS X 10.6. |     1. Apple Cocoa-based Tk 8.5.7 shipped with Mac OS X 10.6 is unusable. | ||||||
|  |     2. Apple Cocoa-based Tk 8.5.9 in OS X 10.7 and 10.8 is better but | ||||||
|  |         can still crash unexpectedly. | ||||||
|     """ |     """ | ||||||
| 
 | 
 | ||||||
|     if (runningAsOSXApp() and |     if (runningAsOSXApp() and | ||||||
|             ('AppKit' in root.tk.call('winfo', 'server', '.')) and |             ('AppKit' in root.tk.call('winfo', 'server', '.')) ): | ||||||
|             (root.tk.call('info', 'patchlevel') == '8.5.7') ): |         patchlevel = root.tk.call('info', 'patchlevel') | ||||||
|         return (r"WARNING: The version of Tcl/Tk (8.5.7) in use may" |         if patchlevel not in ('8.5.7', '8.5.9'): | ||||||
|  |             return False | ||||||
|  |         return (r"WARNING: The version of Tcl/Tk ({0}) in use may" | ||||||
|                 r" be unstable.\n" |                 r" be unstable.\n" | ||||||
|                 r"Visit http://www.python.org/download/mac/tcltk/" |                 r"Visit http://www.python.org/download/mac/tcltk/" | ||||||
|                 r" for current information.") |                 r" for current information.".format(patchlevel)) | ||||||
|     else: |     else: | ||||||
|         return False |         return False | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ned Deily
						Ned Deily