mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	 6da48561cb
			
		
	
	
		6da48561cb
		
	
	
	
	
		
			
			I really don't know why I bother; these are all generated files. But I don't recall how to regenerate them nor how to fix the generator. The hardest part was fixing two mutual recursive imports; somehow changing "import foo" into "from . import foo" where foo and bar import each other AND both are imported from __init__.py caused things to break. Bah.
		
			
				
	
	
		
			89 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			89 lines
		
	
	
	
		
			2.1 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| """
 | |
| Package generated from /Applications/Utilities/Terminal.app
 | |
| """
 | |
| import aetools
 | |
| Error = aetools.Error
 | |
| from . import Standard_Suite
 | |
| from . import Text_Suite
 | |
| from . import Terminal_Suite
 | |
| 
 | |
| 
 | |
| _code_to_module = {
 | |
|     '????' : Standard_Suite,
 | |
|     '????' : Text_Suite,
 | |
|     'trmx' : Terminal_Suite,
 | |
| }
 | |
| 
 | |
| 
 | |
| 
 | |
| _code_to_fullname = {
 | |
|     '????' : ('Terminal.Standard_Suite', 'Standard_Suite'),
 | |
|     '????' : ('Terminal.Text_Suite', 'Text_Suite'),
 | |
|     'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
 | |
| }
 | |
| 
 | |
| from Terminal.Standard_Suite import *
 | |
| from Terminal.Text_Suite import *
 | |
| from Terminal.Terminal_Suite import *
 | |
| 
 | |
| def getbaseclasses(v):
 | |
|     if not getattr(v, '_propdict', None):
 | |
|         v._propdict = {}
 | |
|         v._elemdict = {}
 | |
|         for superclassname in getattr(v, '_superclassnames', []):
 | |
|             superclass = eval(superclassname)
 | |
|             getbaseclasses(superclass)
 | |
|             v._propdict.update(getattr(superclass, '_propdict', {}))
 | |
|             v._elemdict.update(getattr(superclass, '_elemdict', {}))
 | |
|         v._propdict.update(getattr(v, '_privpropdict', {}))
 | |
|         v._elemdict.update(getattr(v, '_privelemdict', {}))
 | |
| 
 | |
| import StdSuites
 | |
| 
 | |
| #
 | |
| # Set property and element dictionaries now that all classes have been defined
 | |
| #
 | |
| getbaseclasses(color)
 | |
| getbaseclasses(window)
 | |
| getbaseclasses(application)
 | |
| getbaseclasses(item)
 | |
| getbaseclasses(document)
 | |
| getbaseclasses(window)
 | |
| getbaseclasses(application)
 | |
| getbaseclasses(character)
 | |
| getbaseclasses(attachment)
 | |
| getbaseclasses(paragraph)
 | |
| getbaseclasses(word)
 | |
| getbaseclasses(attribute_run)
 | |
| getbaseclasses(text)
 | |
| 
 | |
| #
 | |
| # Indices of types declared in this module
 | |
| #
 | |
| _classdeclarations = {
 | |
|     'colr' : color,
 | |
|     'cwin' : window,
 | |
|     'capp' : application,
 | |
|     'cobj' : item,
 | |
|     'docu' : document,
 | |
|     'cwin' : window,
 | |
|     'capp' : application,
 | |
|     'cha ' : character,
 | |
|     'atts' : attachment,
 | |
|     'cpar' : paragraph,
 | |
|     'cwor' : word,
 | |
|     'catr' : attribute_run,
 | |
|     'ctxt' : text,
 | |
| }
 | |
| 
 | |
| 
 | |
| class Terminal(Standard_Suite_Events,
 | |
|         Text_Suite_Events,
 | |
|         Terminal_Suite_Events,
 | |
|         aetools.TalkTo):
 | |
|     _signature = 'trmx'
 | |
| 
 | |
|     _moduleName = 'Terminal'
 | |
| 
 | |
|     _elemdict = application._elemdict
 | |
|     _propdict = application._propdict
 |