mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Issue #17654: Ensure IDLE menus are customized properly on OS X for
non-framework builds and for all variants of Tk.
This commit is contained in:
		
							parent
							
								
									e7d532fbc9
								
							
						
					
					
						commit
						b7601676b0
					
				
					 12 changed files with 130 additions and 94 deletions
				
			
		|  | @ -53,7 +53,7 @@ def __init__(self, editwin): | |||
|         self.flist = self.editwin.flist | ||||
|         self.root = self.editwin.root | ||||
| 
 | ||||
|         if macosxSupport.runningAsOSXApp(): | ||||
|         if macosxSupport.isCocoaTk(): | ||||
|             self.editwin.text_frame.bind('<<run-module-event-2>>', self._run_module_event) | ||||
| 
 | ||||
|     def check_module_event(self, event): | ||||
|  | @ -114,7 +114,7 @@ def checksyntax(self, filename): | |||
|             shell.set_warning_stream(saved_stream) | ||||
| 
 | ||||
|     def run_module_event(self, event): | ||||
|         if macosxSupport.runningAsOSXApp(): | ||||
|         if macosxSupport.isCocoaTk(): | ||||
|             # Tk-Cocoa in MacOSX is broken until at least | ||||
|             # Tk 8.5.9, and without this rather | ||||
|             # crude workaround IDLE would hang when a user | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ned Deily
						Ned Deily