py-cvs-rel2_1 (Rev 1.2) merge
[python/dscho.git] / Mac / Lib / lib-scriptpackages / Explorer / Microsoft_Internet_Explorer.py
blobe48bb6eac4d1174f191414b5e9965f2a1fa4076c
1 """Suite Microsoft Internet Explorer Suite: Events defined by Internet Explorer
2 Level 1, version 1
4 Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'MSIE'
13 class Microsoft_Internet_Explorer_Events:
15 def GetSource(self, _object=None, _attributes={}, **_arguments):
16 """GetSource: Get the html source of a browser window
17 Required argument: The index of the window to get the source from. No value means get the source from the frontmost browser window.
18 Keyword argument _attributes: AppleEvent attribute dictionary
19 Returns: undocumented, typecode 'TEXT'
20 """
21 _code = 'MSIE'
22 _subcode = 'SORC'
24 if _arguments: raise TypeError, 'No optional args expected'
25 _arguments['----'] = _object
28 _reply, _arguments, _attributes = self.send(_code, _subcode,
29 _arguments, _attributes)
30 if _arguments.has_key('errn'):
31 raise aetools.Error, aetools.decodeerror(_arguments)
32 # XXXX Optionally decode result
33 if _arguments.has_key('----'):
34 return _arguments['----']
36 _argmap_do_script = {
37 'window' : 'WIND',
40 def do_script(self, _object, _attributes={}, **_arguments):
41 """do script: Execute script commands
42 Required argument: JavaScript text to execute
43 Keyword argument window: optional ID of window (as specified by the ListWindows event) to execute the script in
44 Keyword argument _attributes: AppleEvent attribute dictionary
45 Returns: Return value
46 """
47 _code = 'misc'
48 _subcode = 'dosc'
50 aetools.keysubst(_arguments, self._argmap_do_script)
51 _arguments['----'] = _object
54 _reply, _arguments, _attributes = self.send(_code, _subcode,
55 _arguments, _attributes)
56 if _arguments.has_key('errn'):
57 raise aetools.Error, aetools.decodeerror(_arguments)
58 # XXXX Optionally decode result
59 if _arguments.has_key('----'):
60 return _arguments['----']
64 # Indices of types declared in this module
66 _classdeclarations = {
69 _propdeclarations = {
72 _compdeclarations = {
75 _enumdeclarations = {