append(): Fixing the test for convertability after consultation with
[python/dscho.git] / Mac / Lib / lib-scriptpackages / Netscape / Text.py
blob1620c8ce4c3dc2b013448599ce205b16d197e3b2
1 """Suite Text:
2 Level 0, version 0
4 Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'TEXT'
13 from StdSuites.Text_Suite import *
14 class Text_Events(Text_Suite_Events):
16 pass
19 class text(aetools.ComponentItem):
20 """text - independent text view objects """
21 want = 'ctxt'
22 class updateLevel(aetools.NProperty):
23 """updateLevel - updating level. Can only be incremented or decremented. Do so only in a try block -- if the level is greater than zero, visual text updating will cease. """
24 which = 'pUpL'
25 want = 'long'
26 class beginning(aetools.NProperty):
27 """beginning - Beginning of element """
28 which = 'bgng'
29 want = 'obj '
30 class end(aetools.NProperty):
31 """end - Ending of element """
32 which = 'end '
33 want = 'obj '
34 class infront(aetools.NProperty):
35 """infront - Immediately before element """
36 which = 'pBef'
37 want = 'obj '
38 class justbehind(aetools.NProperty):
39 """justbehind - Immediately after element """
40 which = 'pAft'
41 want = 'obj '
42 # element 'stys' as ['indx', 'name']
44 class styleset(aetools.ComponentItem):
45 """styleset - A style \xd2set\xd3 that may be used repeatedly in text objects. """
46 want = 'stys'
47 class name(aetools.NProperty):
48 """name - style name """
49 which = 'pnam'
50 want = 'TEXT'
51 class color(aetools.NProperty):
52 """color - the color """
53 which = 'colr'
54 want = 'RGB '
55 class font(aetools.NProperty):
56 """font - font name """
57 which = 'font'
58 want = 'TEXT'
59 class size(aetools.NProperty):
60 """size - the size in points """
61 which = 'ptsz'
62 want = 'long'
63 class writing_code(aetools.NProperty):
64 """writing code - the script system and language """
65 which = 'psct'
66 want = 'tsty'
67 class style(aetools.NProperty):
68 """style - the text styles or face attributes """
69 which = 'txst'
70 want = 'tsty'
72 stylesets = styleset
73 text._superclassnames = []
74 text._privpropdict = {
75 'updateLevel' : updateLevel,
76 'beginning' : beginning,
77 'end' : end,
78 'infront' : infront,
79 'justbehind' : justbehind,
81 text._privelemdict = {
82 'styleset' : styleset,
84 styleset._superclassnames = []
85 styleset._privpropdict = {
86 'name' : name,
87 'color' : color,
88 'font' : font,
89 'size' : size,
90 'writing_code' : writing_code,
91 'style' : style,
93 styleset._privelemdict = {
97 # Indices of types declared in this module
99 _classdeclarations = {
100 'ctxt' : text,
101 'stys' : styleset,
104 _propdeclarations = {
105 'pBef' : infront,
106 'bgng' : beginning,
107 'colr' : color,
108 'txst' : style,
109 'psct' : writing_code,
110 'pAft' : justbehind,
111 'end ' : end,
112 'ptsz' : size,
113 'pUpL' : updateLevel,
114 'pnam' : name,
115 'font' : font,
118 _compdeclarations = {
121 _enumdeclarations = {