home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 May / maximum-cd-2010-05.iso / DiscContents / boxee-0.9.20.10711.exe / system / python / Lib / plat-mac / lib-scriptpackages / Netscape / PowerPlant.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-07-20  |  2.4 KB  |  69 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. '''Suite PowerPlant:
  5. Level 0, version 0
  6.  
  7. Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
  8. AETE/AEUT resource version 1/0, language 0, script 0
  9. '''
  10. import aetools
  11. import MacOS
  12. _code = 'ppnt'
  13.  
  14. class PowerPlant_Events:
  15.     _argmap_SwitchTellTarget = {
  16.         'to': 'data' }
  17.     
  18.     def SwitchTellTarget(self, _no_object = None, _attributes = { }, **_arguments):
  19.         '''SwitchTellTarget: Makes an object the \xd2focus\xd3 of AppleEvents
  20.         Keyword argument to: reference to new focus of AppleEvents
  21.         Keyword argument _attributes: AppleEvent attribute dictionary
  22.         '''
  23.         _code = 'ppnt'
  24.         _subcode = 'sttg'
  25.         aetools.keysubst(_arguments, self._argmap_SwitchTellTarget)
  26.         if _no_object != None:
  27.             raise TypeError, 'No direct arg expected'
  28.         
  29.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  30.         if _arguments.get('errn', 0):
  31.             raise aetools.Error, aetools.decodeerror(_arguments)
  32.         
  33.         if _arguments.has_key('----'):
  34.             return _arguments['----']
  35.         
  36.  
  37.     _argmap_select = {
  38.         'data': 'data' }
  39.     
  40.     def select(self, _object, _attributes = { }, **_arguments):
  41.         '''select: Sets the present selection
  42.         Required argument: object to select or container of sub-objects to select
  43.         Keyword argument data: sub-object(s) to select
  44.         Keyword argument _attributes: AppleEvent attribute dictionary
  45.         '''
  46.         _code = 'misc'
  47.         _subcode = 'slct'
  48.         aetools.keysubst(_arguments, self._argmap_select)
  49.         _arguments['----'] = _object
  50.         (_reply, _arguments, _attributes) = self.send(_code, _subcode, _arguments, _attributes)
  51.         if _arguments.get('errn', 0):
  52.             raise aetools.Error, aetools.decodeerror(_arguments)
  53.         
  54.         if _arguments.has_key('----'):
  55.             return _arguments['----']
  56.         
  57.  
  58.  
  59. _Enum_dbac = {
  60.     'DoNothing': '\x00\x00\x00\x00',
  61.     'PostAlert': '\x00\x00\x00\x01',
  62.     'LowLevelDebugger': '\x00\x00\x00\x02',
  63.     'SourceDebugger': '\x00\x00\x00\x03' }
  64. _classdeclarations = { }
  65. _propdeclarations = { }
  66. _compdeclarations = { }
  67. _enumdeclarations = {
  68.     'dbac': _Enum_dbac }
  69.