• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""
2Package generated from /Applications/Utilities/Terminal.app
3"""
4
5from warnings import warnpy3k
6warnpy3k("In 3.x, the Terminal module is removed.", stacklevel=2)
7
8import aetools
9Error = aetools.Error
10import Standard_Suite
11import Text_Suite
12import Terminal_Suite
13
14
15_code_to_module = {
16    '????' : Standard_Suite,
17    '????' : Text_Suite,
18    'trmx' : Terminal_Suite,
19}
20
21
22
23_code_to_fullname = {
24    '????' : ('Terminal.Standard_Suite', 'Standard_Suite'),
25    '????' : ('Terminal.Text_Suite', 'Text_Suite'),
26    'trmx' : ('Terminal.Terminal_Suite', 'Terminal_Suite'),
27}
28
29from Standard_Suite import *
30from Text_Suite import *
31from Terminal_Suite import *
32
33def getbaseclasses(v):
34    if not getattr(v, '_propdict', None):
35        v._propdict = {}
36        v._elemdict = {}
37        for superclassname in getattr(v, '_superclassnames', []):
38            superclass = eval(superclassname)
39            getbaseclasses(superclass)
40            v._propdict.update(getattr(superclass, '_propdict', {}))
41            v._elemdict.update(getattr(superclass, '_elemdict', {}))
42        v._propdict.update(getattr(v, '_privpropdict', {}))
43        v._elemdict.update(getattr(v, '_privelemdict', {}))
44
45import StdSuites
46
47#
48# Set property and element dictionaries now that all classes have been defined
49#
50getbaseclasses(color)
51getbaseclasses(window)
52getbaseclasses(application)
53getbaseclasses(item)
54getbaseclasses(document)
55getbaseclasses(window)
56getbaseclasses(application)
57getbaseclasses(character)
58getbaseclasses(attachment)
59getbaseclasses(paragraph)
60getbaseclasses(word)
61getbaseclasses(attribute_run)
62getbaseclasses(text)
63
64#
65# Indices of types declared in this module
66#
67_classdeclarations = {
68    'colr' : color,
69    'cwin' : window,
70    'capp' : application,
71    'cobj' : item,
72    'docu' : document,
73    'cwin' : window,
74    'capp' : application,
75    'cha ' : character,
76    'atts' : attachment,
77    'cpar' : paragraph,
78    'cwor' : word,
79    'catr' : attribute_run,
80    'ctxt' : text,
81}
82
83
84class Terminal(Standard_Suite_Events,
85        Text_Suite_Events,
86        Terminal_Suite_Events,
87        aetools.TalkTo):
88    _signature = 'trmx'
89
90    _moduleName = 'Terminal'
91
92    _elemdict = application._elemdict
93    _propdict = application._propdict
94