annotate Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py @ 54294:dba767bc3155 legacy-trunk

remove mention of old ctypes version
author Benjamin Peterson <benjamin@python.org>
date Sat, 23 May 2009 20:59:09 +0000
parents e7a6a4515ab0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
1 """
28434
2e20692dd286 Regenerated with the new way to get terminology (through AppleEvents),
Jack Jansen <jack.jansen@cwi.nl>
parents: 28426
diff changeset
2 Package generated from /Applications/Internet Explorer.app
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
3 """
46967
6df0394abbf1 Add warnings to and deprecated all those Mac modules
Benjamin Peterson <benjamin@python.org>
parents: 29432
diff changeset
4
6df0394abbf1 Add warnings to and deprecated all those Mac modules
Benjamin Peterson <benjamin@python.org>
parents: 29432
diff changeset
5 from warnings import warnpy3k
47958
e7a6a4515ab0 fix test_py3kwarns
Benjamin Peterson <benjamin@python.org>
parents: 46967
diff changeset
6 warnpy3k("In 3.x, the Explorer module is removed.", stacklevel=2)
46967
6df0394abbf1 Add warnings to and deprecated all those Mac modules
Benjamin Peterson <benjamin@python.org>
parents: 29432
diff changeset
7
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
8 import aetools
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
9 Error = aetools.Error
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
10 import Standard_Suite
28426
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
11 import URL_Suite
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
12 import Netscape_Suite
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
13 import Microsoft_Internet_Explorer
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
14 import Web_Browser_Suite
28426
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
15 import Required_Suite
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
16
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
17
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
18 _code_to_module = {
28593
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
19 '****' : Standard_Suite,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
20 'GURL' : URL_Suite,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
21 'MOSS' : Netscape_Suite,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
22 'MSIE' : Microsoft_Internet_Explorer,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
23 'WWW!' : Web_Browser_Suite,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
24 'reqd' : Required_Suite,
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
25 }
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
26
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
27
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
28
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
29 _code_to_fullname = {
28593
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
30 '****' : ('Explorer.Standard_Suite', 'Standard_Suite'),
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
31 'GURL' : ('Explorer.URL_Suite', 'URL_Suite'),
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
32 'MOSS' : ('Explorer.Netscape_Suite', 'Netscape_Suite'),
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
33 'MSIE' : ('Explorer.Microsoft_Internet_Explorer', 'Microsoft_Internet_Explorer'),
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
34 'WWW!' : ('Explorer.Web_Browser_Suite', 'Web_Browser_Suite'),
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
35 'reqd' : ('Explorer.Required_Suite', 'Required_Suite'),
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
36 }
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
37
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
38 from Standard_Suite import *
28426
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
39 from URL_Suite import *
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
40 from Netscape_Suite import *
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
41 from Microsoft_Internet_Explorer import *
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
42 from Web_Browser_Suite import *
28426
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
43 from Required_Suite import *
28399
664212a6e283 Regenerated with Donovan Prestons patch #702620.
Jack Jansen <jack.jansen@cwi.nl>
parents: 26884
diff changeset
44
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
45 def getbaseclasses(v):
28593
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
46 if not getattr(v, '_propdict', None):
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
47 v._propdict = {}
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
48 v._elemdict = {}
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
49 for superclassname in getattr(v, '_superclassnames', []):
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
50 superclass = eval(superclassname)
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
51 getbaseclasses(superclass)
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
52 v._propdict.update(getattr(superclass, '_propdict', {}))
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
53 v._elemdict.update(getattr(superclass, '_elemdict', {}))
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
54 v._propdict.update(getattr(v, '_privpropdict', {}))
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
55 v._elemdict.update(getattr(v, '_privelemdict', {}))
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
56
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
57 import StdSuites
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
58
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
59 #
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
60 # Set property and element dictionaries now that all classes have been defined
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
61 #
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
62 getbaseclasses(application)
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
63
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
64 #
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
65 # Indices of types declared in this module
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
66 #
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
67 _classdeclarations = {
28593
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
68 'capp' : application,
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
69 }
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
70
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
71
28426
6c64616d17ed Regenerated (from resource files) with sorting version of gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28399
diff changeset
72 class Explorer(Standard_Suite_Events,
28593
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
73 URL_Suite_Events,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
74 Netscape_Suite_Events,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
75 Microsoft_Internet_Explorer_Events,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
76 Web_Browser_Suite_Events,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
77 Required_Suite_Events,
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
78 aetools.TalkTo):
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
79 _signature = 'MSIE'
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
80
28593
6f13adde1b51 Oops, _propdeclarations and friends are needed: gensuitemodule uses them
Jack Jansen <jack.jansen@cwi.nl>
parents: 28434
diff changeset
81 _moduleName = 'Explorer'
26884
f0f9acca4164 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
Jack Jansen <jack.jansen@cwi.nl>
parents:
diff changeset
82
29432
e2f2410c096e Re-gegernated with the new gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28593
diff changeset
83 _elemdict = application._elemdict
e2f2410c096e Re-gegernated with the new gensuitemodule.
Jack Jansen <jack.jansen@cwi.nl>
parents: 28593
diff changeset
84 _propdict = application._propdict