mirror of
https://github.com/python/cpython.git
synced 2025-09-10 18:58:35 +00:00
Moved scripting to lib-scripting (did it the Sjoerd-way this time)
This commit is contained in:
parent
e903aab833
commit
3802039cff
14 changed files with 0 additions and 0 deletions
106
Mac/Lib/lib-scripting/Table_Suite.py
Normal file
106
Mac/Lib/lib-scripting/Table_Suite.py
Normal file
|
@ -0,0 +1,106 @@
|
|||
"""Suite Table Suite: Classes for manipulating tables
|
||||
Level 1, version 1
|
||||
|
||||
Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
|
||||
AETE/AEUT resource version 1/0, language 0, script 0
|
||||
"""
|
||||
|
||||
import aetools
|
||||
import MacOS
|
||||
|
||||
_code = 'tbls'
|
||||
|
||||
class Table_Suite:
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class cell(aetools.ComponentItem):
|
||||
"""cell - A cell"""
|
||||
want = 'ccel'
|
||||
class _class(aetools.NProperty):
|
||||
"""class - the class"""
|
||||
which = 'pcls'
|
||||
want = 'type'
|
||||
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"""
|
||||
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._propdict = {
|
||||
'_class' : _class,
|
||||
'formula' : formula,
|
||||
'protection' : protection,
|
||||
}
|
||||
cell._elemdict = {
|
||||
}
|
||||
column._propdict = {
|
||||
'name' : name,
|
||||
}
|
||||
column._elemdict = {
|
||||
}
|
||||
row._propdict = {
|
||||
}
|
||||
row._elemdict = {
|
||||
}
|
||||
table._propdict = {
|
||||
}
|
||||
table._elemdict = {
|
||||
}
|
||||
_Enum_prtn = {
|
||||
'read_only' : 'nmod', # Can't 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,
|
||||
'ctbl' : table,
|
||||
'ccol' : column,
|
||||
'crow' : row,
|
||||
}
|
||||
|
||||
_propdeclarations = {
|
||||
'ppro' : protection,
|
||||
'pnam' : name,
|
||||
'pfor' : formula,
|
||||
'pcls' : _class,
|
||||
}
|
||||
|
||||
_compdeclarations = {
|
||||
}
|
||||
|
||||
_enumdeclarations = {
|
||||
'prtn' : _Enum_prtn,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue