mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on Mac OS X). The only items remaining in Mac/Lib are modules that are meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences in resources, etc).
This commit is contained in:
parent
c262a1f51c
commit
60087fb450
136 changed files with 207 additions and 0 deletions
104
Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py
Normal file
104
Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py
Normal file
|
@ -0,0 +1,104 @@
|
|||
"""Suite Table Suite: Classes for manipulating tables
|
||||
Level 1, version 1
|
||||
|
||||
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'tbls'
|
||||
|
||||
class Table_Suite_Events:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class cell(aetools.ComponentItem):
|
||||
"""cell - A cell """
|
||||
want = 'ccel'
|
||||
class formula(aetools.NProperty):
|
||||
"""formula - the formula of the cell """
|
||||
which = 'pfor'
|
||||
want = 'ctxt'
|
||||
class protection(aetools.NProperty):
|
||||
"""protection - Indicates whether value or formula in the cell can be changed """
|
||||
which = 'ppro'
|
||||
want = 'prtn'
|
||||
|
||||
cells = cell
|
||||
|
||||
class column(aetools.ComponentItem):
|
||||
"""column - A column """
|
||||
want = 'ccol'
|
||||
class name(aetools.NProperty):
|
||||
"""name - the name of the column """
|
||||
which = 'pnam'
|
||||
want = 'itxt'
|
||||
|
||||
columns = column
|
||||
|
||||
class row(aetools.ComponentItem):
|
||||
"""row - A row """
|
||||
want = 'crow'
|
||||
|
||||
rows = row
|
||||
|
||||
class table(aetools.ComponentItem):
|
||||
"""table - A table """
|
||||
want = 'ctbl'
|
||||
|
||||
tables = table
|
||||
cell._superclassnames = []
|
||||
cell._privpropdict = {
|
||||
'formula' : formula,
|
||||
'protection' : protection,
|
||||
}
|
||||
cell._privelemdict = {
|
||||
}
|
||||
column._superclassnames = []
|
||||
column._privpropdict = {
|
||||
'name' : name,
|
||||
}
|
||||
column._privelemdict = {
|
||||
}
|
||||
row._superclassnames = []
|
||||
row._privpropdict = {
|
||||
}
|
||||
row._privelemdict = {
|
||||
}
|
||||
table._superclassnames = []
|
||||
table._privpropdict = {
|
||||
}
|
||||
table._privelemdict = {
|
||||
}
|
||||
_Enum_prtn = {
|
||||
'read_only' : 'nmod', # Can\xd5t change values or formulas
|
||||
'formulas_protected' : 'fpro', # Can changes values but not formulas
|
||||
'read_2f_write' : 'modf', # Can change values and formulas
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Indices of types declared in this module
|
||||
#
|
||||
_classdeclarations = {
|
||||
'ccel' : cell,
|
||||
'ccol' : column,
|
||||
'ctbl' : table,
|
||||
'crow' : row,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'pnam' : name,
|
||||
'pfor' : formula,
|
||||
'ppro' : protection,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'prtn' : _Enum_prtn,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue