Bump version to 1.0.
[python/dscho.git] / Mac / Lib / lib-scriptpackages / Explorer / Required_Suite.py
blobd9d2b9fb864c502af7d6a936d68c95f3091e24da
1 """Suite Required Suite: Events that every application should support
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 = 'reqd'
13 from StdSuites.Required_Suite import *
14 class Required_Suite_Events(Required_Suite_Events):
16 def run(self, _no_object=None, _attributes={}, **_arguments):
17 """run:
18 Keyword argument _attributes: AppleEvent attribute dictionary
19 """
20 _code = 'aevt'
21 _subcode = 'oapp'
23 if _arguments: raise TypeError, 'No optional args expected'
24 if _no_object != None: raise TypeError, 'No direct arg expected'
27 _reply, _arguments, _attributes = self.send(_code, _subcode,
28 _arguments, _attributes)
29 if _arguments.has_key('errn'):
30 raise aetools.Error, aetools.decodeerror(_arguments)
31 # XXXX Optionally decode result
32 if _arguments.has_key('----'):
33 return _arguments['----']
35 def open(self, _object, _attributes={}, **_arguments):
36 """open: Open documents
37 Required argument: undocumented, typecode 'alis'
38 Keyword argument _attributes: AppleEvent attribute dictionary
39 """
40 _code = 'aevt'
41 _subcode = 'odoc'
43 if _arguments: raise TypeError, 'No optional args expected'
44 _arguments['----'] = _object
47 _reply, _arguments, _attributes = self.send(_code, _subcode,
48 _arguments, _attributes)
49 if _arguments.has_key('errn'):
50 raise aetools.Error, aetools.decodeerror(_arguments)
51 # XXXX Optionally decode result
52 if _arguments.has_key('----'):
53 return _arguments['----']
55 def _print(self, _object, _attributes={}, **_arguments):
56 """print: Print documents
57 Required argument: undocumented, typecode 'alis'
58 Keyword argument _attributes: AppleEvent attribute dictionary
59 """
60 _code = 'aevt'
61 _subcode = 'pdoc'
63 if _arguments: raise TypeError, 'No optional args expected'
64 _arguments['----'] = _object
67 _reply, _arguments, _attributes = self.send(_code, _subcode,
68 _arguments, _attributes)
69 if _arguments.has_key('errn'):
70 raise aetools.Error, aetools.decodeerror(_arguments)
71 # XXXX Optionally decode result
72 if _arguments.has_key('----'):
73 return _arguments['----']
75 def quit(self, _no_object=None, _attributes={}, **_arguments):
76 """quit: Quit application
77 Keyword argument _attributes: AppleEvent attribute dictionary
78 """
79 _code = 'aevt'
80 _subcode = 'quit'
82 if _arguments: raise TypeError, 'No optional args expected'
83 if _no_object != None: raise TypeError, 'No direct arg expected'
86 _reply, _arguments, _attributes = self.send(_code, _subcode,
87 _arguments, _attributes)
88 if _arguments.has_key('errn'):
89 raise aetools.Error, aetools.decodeerror(_arguments)
90 # XXXX Optionally decode result
91 if _arguments.has_key('----'):
92 return _arguments['----']
96 # Indices of types declared in this module
98 _classdeclarations = {
101 _propdeclarations = {
104 _compdeclarations = {
107 _enumdeclarations = {