Fix three PyChecker-detected gotchas.
[python/dscho.git] / Mac / Lib / lib-scriptpackages / Netscape / Text.py
blobc4b47995aad3e07b9455cf1e1e3db6a50ed60632
1 """Suite Text:
2 Level 0, version 0
4 Generated from Macintosh HD:Internet:Internet-programma's:Netscape Communicator�-map:Netscape Communicator�
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 ³set² 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._propdict = {
74 'updateLevel' : updateLevel,
75 'beginning' : beginning,
76 'end' : end,
77 'infront' : infront,
78 'justbehind' : justbehind,
80 text._elemdict = {
81 'styleset' : styleset,
83 styleset._propdict = {
84 'name' : name,
85 'color' : color,
86 'font' : font,
87 'size' : size,
88 'writing_code' : writing_code,
89 'style' : style,
91 styleset._elemdict = {
95 # Indices of types declared in this module
97 _classdeclarations = {
98 'stys' : styleset,
99 'ctxt' : text,
102 _propdeclarations = {
103 'pAft' : justbehind,
104 'psct' : writing_code,
105 'txst' : style,
106 'colr' : color,
107 'pBef' : infront,
108 'pnam' : name,
109 'ptsz' : size,
110 'pUpL' : updateLevel,
111 'bgng' : beginning,
112 'font' : font,
113 'end ' : end,
116 _compdeclarations = {
119 _enumdeclarations = {