2002-03-30 19:46:16 -04:00
|
|
|
"""
|
2003-03-28 20:13:17 -04:00
|
|
|
Package generated from /Applications/Utilities/Terminal.app
|
2002-03-30 19:46:16 -04:00
|
|
|
"""
|
2008-05-12 18:42:13 -03:00
|
|
|
|
|
|
|
from warnings import warnpy3k
|
2008-07-14 14:42:17 -03:00
|
|
|
warnpy3k("In 3.x, the Terminal module is removed.", stacklevel=2)
|
2008-05-12 18:42:13 -03:00
|
|
|
|
2002-03-30 19:46:16 -04:00
|
|
|
import aetools
|
|
|
|
Error = aetools.Error
|
2003-03-28 20:13:17 -04:00
|
|
|
import Standard_Suite
|
|
|
|
import Text_Suite
|
2003-03-28 18:07:22 -04:00
|
|
|
import Terminal_Suite
|
2002-03-30 19:46:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
_code_to_module = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'????' : Standard_Suite,
|
|
|
|
'????' : Text_Suite,
|
|
|
|
'trmx' : Terminal_Suite,
|
2002-03-30 19:46:16 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_code_to_fullname = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'????' : ('Terminal.Standard_Suite', 'Standard_Suite'),
|
|
|
|
'????' : ('Terminal.Text_Suite', 'Text_Suite'),
|
|
|
|
'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
|
2002-03-30 19:46:16 -04:00
|
|
|
}
|
|
|
|
|
2003-03-28 20:13:17 -04:00
|
|
|
from Standard_Suite import *
|
|
|
|
from Text_Suite import *
|
2003-03-28 18:07:22 -04:00
|
|
|
from Terminal_Suite import *
|
2003-03-23 18:07:28 -04:00
|
|
|
|
|
|
|
def getbaseclasses(v):
|
2003-04-12 19:27:11 -03:00
|
|
|
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', {}))
|
2003-03-23 18:07:28 -04:00
|
|
|
|
|
|
|
import StdSuites
|
|
|
|
|
|
|
|
#
|
|
|
|
# Set property and element dictionaries now that all classes have been defined
|
|
|
|
#
|
2003-04-12 19:27:11 -03:00
|
|
|
getbaseclasses(color)
|
|
|
|
getbaseclasses(window)
|
|
|
|
getbaseclasses(application)
|
|
|
|
getbaseclasses(item)
|
|
|
|
getbaseclasses(document)
|
2003-06-13 11:31:19 -03:00
|
|
|
getbaseclasses(window)
|
|
|
|
getbaseclasses(application)
|
2003-03-28 20:13:17 -04:00
|
|
|
getbaseclasses(character)
|
|
|
|
getbaseclasses(attachment)
|
|
|
|
getbaseclasses(paragraph)
|
|
|
|
getbaseclasses(word)
|
|
|
|
getbaseclasses(attribute_run)
|
|
|
|
getbaseclasses(text)
|
2003-03-23 18:07:28 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# Indices of types declared in this module
|
|
|
|
#
|
|
|
|
_classdeclarations = {
|
2003-04-12 19:27:11 -03:00
|
|
|
'colr' : color,
|
|
|
|
'cwin' : window,
|
|
|
|
'capp' : application,
|
|
|
|
'cobj' : item,
|
|
|
|
'docu' : document,
|
2003-06-13 11:31:19 -03:00
|
|
|
'cwin' : window,
|
|
|
|
'capp' : application,
|
2003-04-12 19:27:11 -03:00
|
|
|
'cha ' : character,
|
|
|
|
'atts' : attachment,
|
|
|
|
'cpar' : paragraph,
|
|
|
|
'cwor' : word,
|
|
|
|
'catr' : attribute_run,
|
|
|
|
'ctxt' : text,
|
2003-03-23 18:07:28 -04:00
|
|
|
}
|
2002-03-30 19:46:16 -04:00
|
|
|
|
|
|
|
|
2003-03-28 20:13:17 -04:00
|
|
|
class Terminal(Standard_Suite_Events,
|
2003-04-12 19:27:11 -03:00
|
|
|
Text_Suite_Events,
|
|
|
|
Terminal_Suite_Events,
|
|
|
|
aetools.TalkTo):
|
|
|
|
_signature = 'trmx'
|
2002-03-30 19:46:16 -04:00
|
|
|
|
2003-04-12 19:27:11 -03:00
|
|
|
_moduleName = 'Terminal'
|
2003-03-23 18:07:28 -04:00
|
|
|
|
2003-06-13 11:31:19 -03:00
|
|
|
_elemdict = application._elemdict
|
|
|
|
_propdict = application._propdict
|