mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 02:15:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			285 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			285 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| f = Function(void, 'OpenDeskAcc',
 | |
| 	(Str255, 'name', InMode),
 | |
| )
 | |
| functions.append(f)
 | |
| 
 | |
| as_resource_body = """
 | |
| return ResObj_New((Handle)_self->ob_itself);
 | |
| """
 | |
| 
 | |
| f = ManualGenerator("as_Resource", as_resource_body)
 | |
| f.docstring = lambda : "Return this Menu as a Resource"
 | |
| 
 | |
| methods.append(f)
 | 
