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
13 class PowerPlant_Events
:
15 _argmap_SwitchTellTarget
= {
19 def SwitchTellTarget(self
, _no_object
=None, _attributes
={}, **_arguments
):
20 """SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents
21 Keyword argument to: reference to new focus of AppleEvents
22 Keyword argument _attributes: AppleEvent attribute dictionary
27 aetools
.keysubst(_arguments
, self
._argmap
_SwitchTellTarget
)
28 if _no_object
!= None: raise TypeError, 'No direct arg expected'
31 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
32 _arguments
, _attributes
)
33 if _arguments
.get('errn', 0):
34 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
35 # XXXX Optionally decode result
36 if _arguments
.has_key('----'):
37 return _arguments
['----']
43 def select(self
, _object
, _attributes
={}, **_arguments
):
44 """select: Sets the present selection
45 Required argument: object to select or container of sub-objects to select
46 Keyword argument data: sub-object(s) to select
47 Keyword argument _attributes: AppleEvent attribute dictionary
52 aetools
.keysubst(_arguments
, self
._argmap
_select
)
53 _arguments
['----'] = _object
56 _reply
, _arguments
, _attributes
= self
.send(_code
, _subcode
,
57 _arguments
, _attributes
)
58 if _arguments
.get('errn', 0):
59 raise aetools
.Error
, aetools
.decodeerror(_arguments
)
60 # XXXX Optionally decode result
61 if _arguments
.has_key('----'):
62 return _arguments
['----']
65 'DoNothing' : '\x00\x00\x00\x00', # No debugging action is taken.
66 'PostAlert' : '\x00\x00\x00\x01', # Post an alert.
67 'LowLevelDebugger' : '\x00\x00\x00\x02', # Break into the low level debugger (MacsBug).
68 'SourceDebugger' : '\x00\x00\x00\x03', # Break into the source level debugger (if source debugger is executing).
73 # Indices of types declared in this module
75 _classdeclarations
= {