mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #17172: Add the ability to run turtledemo from Idle.
Make turtledemo start as active on Mac even when run with subprocess. Patch by Ramchandra Apt, Lita Cho, and Ned Daily.
This commit is contained in:
		
							parent
							
								
									c61c170b41
								
							
						
					
					
						commit
						7e55db2bc5
					
				
					 3 changed files with 30 additions and 0 deletions
				
			
		|  | @ -8,6 +8,8 @@ | |||
| windows. | ||||
| 
 | ||||
| """ | ||||
| from importlib.util import find_spec | ||||
| 
 | ||||
| from idlelib.configHandler import idleConf | ||||
| 
 | ||||
| #   Warning: menudefs is altered in macosxSupport.overrideRootMenu() | ||||
|  | @ -86,4 +88,7 @@ | |||
|    ]), | ||||
| ] | ||||
| 
 | ||||
| if find_spec('turtledemo'): | ||||
|     menudefs[-1][1].append(('Turtle Demo', '<<open-turtle-demo>>')) | ||||
| 
 | ||||
| default_keydefs = idleConf.GetCurrentKeySet() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Terry Jan Reedy
						Terry Jan Reedy