summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py
blob: 1aaf3d86290d35ce8c082d0d7062b3537151206b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
"""
Package generated from /Applications/Utilities/Terminal.app
"""
import aetools
Error = aetools.Error
import Standard_Suite
import Text_Suite
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 Standard_Suite import *
from Text_Suite import *
from 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(character)
getbaseclasses(attachment)
getbaseclasses(paragraph)
getbaseclasses(word)
getbaseclasses(attribute_run)
getbaseclasses(text)
getbaseclasses(window)
getbaseclasses(application)
getbaseclasses(color)
getbaseclasses(window)
getbaseclasses(application)
getbaseclasses(item)
getbaseclasses(document)

#
# Indices of types declared in this module
#
_classdeclarations = {
	'cha ' : character,
	'atts' : attachment,
	'cpar' : paragraph,
	'cwor' : word,
	'catr' : attribute_run,
	'ctxt' : text,
	'cwin' : window,
	'capp' : application,
	'colr' : color,
	'cwin' : window,
	'capp' : application,
	'cobj' : item,
	'docu' : document,
}


class Terminal(Standard_Suite_Events,
		Text_Suite_Events,
		Terminal_Suite_Events,
		aetools.TalkTo):
	_signature = 'trmx'

	_moduleName = 'Terminal'