home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / MacHacksBug / Python 1.5.2c1 / Mac / Lib / lib-scripting / QuickDraw_Graphics_Supplemental < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.5 KB  |  72 lines

  1. """Suite QuickDraw Graphics Supplemental Suite: Defines transformations of graphic objects
  2. Level 1, version 1
  3.  
  4. Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
  5. AETE/AEUT resource version 1/0, language 0, script 0
  6. """
  7.  
  8. import aetools
  9. import MacOS
  10.  
  11. _code = 'qdsp'
  12.  
  13. class QuickDraw_Graphics_Supplemental_Suite:
  14.  
  15.     pass
  16.  
  17.  
  18. class drawing_area(aetools.ComponentItem):
  19.     """drawing area - Container for graphics and supporting information"""
  20.     want = 'cdrw'
  21. class rotation(aetools.NProperty):
  22.     """rotation - the default rotation for objects in the drawing area"""
  23.     which = 'prot'
  24.     want = 'trot'
  25. class scale(aetools.NProperty):
  26.     """scale - the default scaling for objects in the drawing area"""
  27.     which = 'pscl'
  28.     want = 'fixd'
  29. class translation(aetools.NProperty):
  30.     """translation - the default repositioning for objects in the drawing area"""
  31.     which = 'ptrs'
  32.     want = 'QDpt'
  33.  
  34. drawing_areas = drawing_area
  35.  
  36. class graphic_group(aetools.ComponentItem):
  37.     """graphic group - Group of graphics"""
  38.     want = 'cpic'
  39.  
  40. graphic_groups = graphic_group
  41. drawing_area._propdict = {
  42.     'rotation' : rotation,
  43.     'scale' : scale,
  44.     'translation' : translation,
  45. }
  46. drawing_area._elemdict = {
  47. }
  48. graphic_group._propdict = {
  49. }
  50. graphic_group._elemdict = {
  51. }
  52.  
  53. #
  54. # Indices of types declared in this module
  55. #
  56. _classdeclarations = {
  57.     'cpic' : graphic_group,
  58.     'cdrw' : drawing_area,
  59. }
  60.  
  61. _propdeclarations = {
  62.     'prot' : rotation,
  63.     'pscl' : scale,
  64.     'ptrs' : translation,
  65. }
  66.  
  67. _compdeclarations = {
  68. }
  69.  
  70. _enumdeclarations = {
  71. }
  72.